Exemple #1
0
        public void MessabeBarVM_RunningTimerIsReset_AfterAddingAnyNewRow()
        {
            FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel();

            fakeVm.AddRow("dummy message");

            Assert.IsTrue(fakeVm.TimerWasReset);
        }
Exemple #2
0
        public void MessabeBarVM_AddRow_WillNotifyAboutTextChange()
        {
            FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel();

            fakeVm.AddRow("dummy message");

            Assert.IsTrue(fakeVm.PropertiesChanged.Contains("MultiRowText"));
        }
Exemple #3
0
        public void MessabeBarVM_IsNotShown_AfterTimerTick()
        {
            FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel();

            fakeVm.AddRow("dummy message");

            fakeVm.Forward_TimerTickSeam();

            Assert.IsFalse(fakeVm.IsShown);
        }
Exemple #4
0
        public void MessabeBarVM_HidingWillNotifyAboutIsShownChange()
        {
            FakeMessageBarViewModel fakeVm = new FakeMessageBarViewModel();

            fakeVm.AddRow("dummy message");

            fakeVm.PropertiesChanged.Clear();
            fakeVm.Forward_TimerTickSeam();

            Assert.IsTrue(fakeVm.PropertiesChanged.Contains("IsShown"));
        }