mirror of
https://github.com/chylex/.NET-Community-Toolkit.git
synced 2025-04-10 11:15:45 +02:00
Improved Test_ObservableObject_Events
(Also checks for events order now)
This commit is contained in:
parent
41cba948fe
commit
6862c28800
@ -23,14 +23,22 @@ public void Test_ObservableObject_Events()
|
||||
|
||||
model.PropertyChanging += (s, e) =>
|
||||
{
|
||||
Assert.IsNull(changing.Item1);
|
||||
Assert.IsNull(changed.Item1);
|
||||
Assert.AreSame(model, s);
|
||||
Assert.IsNotNull(s);
|
||||
Assert.IsNotNull(e);
|
||||
|
||||
changing = (e, model.Data);
|
||||
};
|
||||
|
||||
model.PropertyChanged += (s, e) =>
|
||||
{
|
||||
Assert.IsNotNull(changing.Item1);
|
||||
Assert.IsNull(changed.Item1);
|
||||
Assert.AreSame(model, s);
|
||||
Assert.IsNotNull(s);
|
||||
Assert.IsNotNull(e);
|
||||
|
||||
changed = (e, model.Data);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user