LineToolTests.cs 855 B

1234567891011121314151617181920212223242526272829
  1. using System.Linq;
  2. using PixiEditor.Models.Position;
  3. using PixiEditor.Models.Tools.Tools;
  4. using Xunit;
  5. namespace PixiEditorTests.ModelsTests.ToolsTests
  6. {
  7. [Collection("Application collection")]
  8. public class LineToolTests
  9. {
  10. //[StaTheory]
  11. //[InlineData(2)]
  12. //[InlineData(10)]
  13. //[InlineData(100)]
  14. //public void TestThatCreateLineCreatesDiagonalLine(int length)
  15. //{
  16. // LineTool lineTool = new LineTool();
  17. // System.Collections.Generic.IEnumerable<Coordinates> line = lineTool.CreateLine(new Coordinates(0, 0), new Coordinates(length - 1, length - 1), 1);
  18. // Assert.Equal(length, line.Count());
  19. // for (int i = 0; i < length; i++)
  20. // {
  21. // Assert.Contains(new Coordinates(i, i), line);
  22. // }
  23. //}
  24. }
  25. }