public void MessabeBarVM_IsNotShown_AfterTimerTick() { FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel(); fakeVm.AddRow("dummy message"); fakeVm.Forward_TimerTickSeam(); Assert.IsFalse(fakeVm.IsShown); }
public void MessabeBarVM_HidingWillNotifyAboutIsShownChange() { FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel(); fakeVm.AddRow("dummy message"); fakeVm.PropertiesChanged.Clear(); fakeVm.Forward_TimerTickSeam(); Assert.IsTrue(fakeVm.PropertiesChanged.Contains("IsShown")); }