Browse Source

Fixed tests

flabbet 4 years ago
parent
commit
1ddeb3924e

+ 1 - 1
PixiEditorTests/ModelsTests/ToolsTests/LineToolTests.cs

@@ -24,7 +24,7 @@ namespace PixiEditorTests.ModelsTests.ToolsTests
 
             var line = lineTool.CreateLine(new Coordinates(0,0), new Coordinates(length - 1, length - 1), 1);
 
-            Assert.Equal(length, line.Length);
+            Assert.Equal(length, line.Count());
 
             for (int i = 0; i < length; i++)
             {

+ 2 - 1
PixiEditorTests/ModelsTests/ToolsTests/RectangleToolTests.cs

@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Diagnostics.CodeAnalysis;
+using System.Linq;
 using System.Text;
 using System.Windows;
 using PixiEditor;
@@ -27,7 +28,7 @@ namespace PixiEditorTests.ModelsTests.ToolsTests
 
             int expectedBorderPoints = (endX - startX) * 2 + (endY - startX) * 2;
 
-            Assert.Equal(expectedBorderPoints, outline.Length);
+            Assert.Equal(expectedBorderPoints, outline.Count());
         }
 
     }