Pārlūkot izejas kodu

Update NodeSystemTests.cs

flabbet 1 gadu atpakaļ
vecāks
revīzija
111f10e110
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      tests/PixiEditor.Backend.Tests/NodeSystemTests.cs

+ 6 - 0
tests/PixiEditor.Backend.Tests/NodeSystemTests.cs

@@ -24,6 +24,11 @@ public class NodeSystemTests
 {
     private readonly ITestOutputHelper output;
 
+    private Type[] knownNonSerializableTypes = new[]
+    {
+        typeof(Filter)
+    };
+
     public NodeSystemTests(ITestOutputHelper output)
     {
         this.output = output;
@@ -142,6 +147,7 @@ public class NodeSystemTests
 
             foreach (var input in node.InputProperties)
             {
+                if (knownNonSerializableTypes.Contains(input.ValueType)) continue;
                 if (input.ValueType.IsAssignableTo(typeof(Delegate))) continue;
                 bool hasFactory = factories.Any(x => x.OriginalType == input.ValueType);
                 Assert.True(