Explorar el Código

Update NodeSystemTests.cs

flabbet hace 1 año
padre
commit
111f10e110
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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 readonly ITestOutputHelper output;
 
 
+    private Type[] knownNonSerializableTypes = new[]
+    {
+        typeof(Filter)
+    };
+
     public NodeSystemTests(ITestOutputHelper output)
     public NodeSystemTests(ITestOutputHelper output)
     {
     {
         this.output = output;
         this.output = output;
@@ -142,6 +147,7 @@ public class NodeSystemTests
 
 
             foreach (var input in node.InputProperties)
             foreach (var input in node.InputProperties)
             {
             {
+                if (knownNonSerializableTypes.Contains(input.ValueType)) continue;
                 if (input.ValueType.IsAssignableTo(typeof(Delegate))) continue;
                 if (input.ValueType.IsAssignableTo(typeof(Delegate))) continue;
                 bool hasFactory = factories.Any(x => x.OriginalType == input.ValueType);
                 bool hasFactory = factories.Any(x => x.OriginalType == input.ValueType);
                 Assert.True(
                 Assert.True(