|
|
|
@ -355,6 +355,17 @@ namespace Perspex.Base.UnitTests |
|
|
|
Assert.Equal("initial", target.GetValue(Class1.FooProperty)); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void Bind_Throws_Exception_For_Unregistered_Property() |
|
|
|
{ |
|
|
|
Class1 target = new Class1(); |
|
|
|
|
|
|
|
Assert.Throws<InvalidOperationException>(() => |
|
|
|
{ |
|
|
|
target.Bind(Class2.BarProperty, Observable.Return("foo")); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void Bind_Sets_Subsequent_Value() |
|
|
|
{ |
|
|
|
|