CoordinatesCalculatorTests.cs 600 B

1234567891011121314151617181920
  1. using NUnit.Framework;
  2. using PixiEditorDotNetCore3.Models;
  3. using PixiEditorDotNetCore3.Models.Tools.Tools;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Text;
  7. namespace PixiEditorTests.WorkspaceTests.ToolsTests
  8. {
  9. [TestFixture]
  10. public class CoordinatesCalculatorTests
  11. {
  12. [TestCase(0,0,2,2, ExpectedResult = 9)]
  13. [TestCase(0,0,10,10, ExpectedResult = 121)]
  14. public int RectangleToCoordinatesAmountTest(int x1, int y1, int x2, int y2)
  15. {
  16. return CoordinatesCalculator.RectangleToCoordinates(x1, y1, x2, y2).Length;
  17. }
  18. }
  19. }