Browse Source

Prevent tests interfering with other tests.

Steven Kirk 5 years ago
parent
commit
89ba4a6327

+ 1 - 1
tests/Avalonia.Base.UnitTests/AvaloniaObjectTests_Coercion.cs

@@ -109,7 +109,7 @@ namespace Avalonia.Base.UnitTests
                     coerce: CoerceFoo);
 
             public static readonly AttachedProperty<int> AttachedProperty =
-                AvaloniaProperty.RegisterAttached<Class1, AvaloniaObject, int>(
+                AvaloniaProperty.RegisterAttached<Class1, Class1, int>(
                     "Attached",
                     defaultValue: 11,
                     coerce: CoerceFoo);

+ 1 - 1
tests/Avalonia.Base.UnitTests/AvaloniaObjectTests_Validation.cs

@@ -79,7 +79,7 @@ namespace Avalonia.Base.UnitTests
                     validate: ValidateFoo);
 
             public static readonly AttachedProperty<int> AttachedProperty =
-                AvaloniaProperty.RegisterAttached<Class1, AvaloniaObject, int>(
+                AvaloniaProperty.RegisterAttached<Class1, Class1, int>(
                     "Attached",
                     defaultValue: 11,
                     validate: ValidateFoo);