|
|
@@ -15,35 +15,6 @@ namespace Avalonia.Base.UnitTests
|
|
|
p = AttachedOwner.AttachedProperty;
|
|
|
}
|
|
|
|
|
|
- [Fact]
|
|
|
- public void IsSet_Returns_False_For_Unset_Property()
|
|
|
- {
|
|
|
- var target = new Class1();
|
|
|
-
|
|
|
- Assert.False(target.IsSet(Class1.FooProperty));
|
|
|
- }
|
|
|
-
|
|
|
- [Fact]
|
|
|
- public void IsSet_Returns_False_For_Set_Property()
|
|
|
- {
|
|
|
- var target = new Class1();
|
|
|
-
|
|
|
- target.SetValue(Class1.FooProperty, "foo");
|
|
|
-
|
|
|
- Assert.True(target.IsSet(Class1.FooProperty));
|
|
|
- }
|
|
|
-
|
|
|
- [Fact]
|
|
|
- public void IsSet_Returns_False_For_Cleared_Property()
|
|
|
- {
|
|
|
- var target = new Class1();
|
|
|
-
|
|
|
- target.SetValue(Class1.FooProperty, "foo");
|
|
|
- target.SetValue(Class1.FooProperty, AvaloniaProperty.UnsetValue);
|
|
|
-
|
|
|
- Assert.False(target.IsSet(Class1.FooProperty));
|
|
|
- }
|
|
|
-
|
|
|
private class Class1 : AvaloniaObject
|
|
|
{
|
|
|
public static readonly StyledProperty<string> FooProperty =
|