Browse Source

Fixed tests

flabbet 4 years ago
parent
commit
54cfd6b258

+ 1 - 1
PixiEditor/PixiEditor.csproj

@@ -142,7 +142,7 @@
     </None>
     </None>
   </ItemGroup>
   </ItemGroup>
   <ItemGroup>
   <ItemGroup>
-    <PackageReference Include="Dirkster.AvalonDock" Version="4.50.3" />
+    <PackageReference Include="Dirkster.AvalonDock" Version="4.51.1" />
     <PackageReference Include="DiscordRichPresence" Version="1.0.175" />
     <PackageReference Include="DiscordRichPresence" Version="1.0.175" />
     <PackageReference Include="Expression.Blend.Sdk">
     <PackageReference Include="Expression.Blend.Sdk">
       <Version>1.0.2</Version>
       <Version>1.0.2</Version>

+ 2 - 1
PixiEditorTests/ModelsTests/ControllersTests/ReadonlyUtilityTests.cs

@@ -1,5 +1,6 @@
 using PixiEditor.Models.Controllers;
 using PixiEditor.Models.Controllers;
 using PixiEditor.Models.Position;
 using PixiEditor.Models.Position;
+using System.Collections.Generic;
 using Xunit;
 using Xunit;
 
 
 namespace PixiEditorTests.ModelsTests.ControllersTests
 namespace PixiEditorTests.ModelsTests.ControllersTests
@@ -12,7 +13,7 @@ namespace PixiEditorTests.ModelsTests.ControllersTests
             bool toolUsed = false;
             bool toolUsed = false;
 
 
             ReadonlyToolUtility util = new ReadonlyToolUtility();
             ReadonlyToolUtility util = new ReadonlyToolUtility();
-            util.ExecuteTool(new[] { new Coordinates(0, 0) }, new TestReadonlyTool(() => toolUsed = true));
+            util.ExecuteTool(new List<Coordinates> { new Coordinates(0, 0) }, new TestReadonlyTool(() => toolUsed = true));
             Assert.True(toolUsed);
             Assert.True(toolUsed);
         }
         }
     }
     }

+ 2 - 1
PixiEditorTests/ModelsTests/ControllersTests/TestReadonlyTool.cs

@@ -1,4 +1,5 @@
 using System;
 using System;
+using System.Collections.Generic;
 using PixiEditor.Models.Position;
 using PixiEditor.Models.Position;
 using PixiEditor.Models.Tools;
 using PixiEditor.Models.Tools;
 
 
@@ -13,7 +14,7 @@ namespace PixiEditorTests.ModelsTests.ControllersTests
 
 
         public Action ToolAction { get; set; }
         public Action ToolAction { get; set; }
 
 
-        public override void Use(Coordinates[] pixels)
+        public override void Use(List<Coordinates> pixels)
         {
         {
             ToolAction();
             ToolAction();
         }
         }