public void MessabeBarVM_RunningTimerIsReset_AfterAddingAnyNewRow() { FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel(); fakeVm.AddRow("dummy message"); Assert.IsTrue(fakeVm.TimerWasReset); }
public void MessabeBarVM_AddRow_WillNotifyAboutTextChange() { FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel(); fakeVm.AddRow("dummy message"); Assert.IsTrue(fakeVm.PropertiesChanged.Contains("MultiRowText")); }
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")); }