示例#1
0
        public void OnShow_IsVisible_IsTrue()
        {
            AppUpdateRequiredPM systemUnderTest = new AppUpdateRequiredPM(Substitute.For <IStringTableManager>());

            systemUnderTest.Show();

            Assert.IsTrue(systemUnderTest.ViewModel.GetPropertyValue <bool>(AppUpdateRequiredPM.VISIBLE_PROPERTY));
        }
示例#2
0
        public void OnShow_TextPropertiesSetAsExpected()
        {
            IStringTableManager mockStringTable = Substitute.For <IStringTableManager>();

            mockStringTable.Get(AppUpdateRequiredPM.BODY_KEY).Returns("Body");
            mockStringTable.Get(AppUpdateRequiredPM.TITLE_KEY).Returns("Title");

            AppUpdateRequiredPM systemUnderTest = new AppUpdateRequiredPM(mockStringTable);

            systemUnderTest.Show();

            Assert.AreEqual("Title", systemUnderTest.ViewModel.GetPropertyValue <string>(AppUpdateRequiredPM.TITLE_TEXT_PROPERTY));
            Assert.AreEqual("Body", systemUnderTest.ViewModel.GetPropertyValue <string>(AppUpdateRequiredPM.BODY_TEXT_PROPERTY));
        }
示例#3
0
        public void WhenCreated_IsVisibile_IsFalse()
        {
            AppUpdateRequiredPM systemUnderTest = new AppUpdateRequiredPM(Substitute.For <IStringTableManager>());

            Assert.IsFalse(systemUnderTest.ViewModel.GetPropertyValue <bool>(AppUpdateRequiredPM.VISIBLE_PROPERTY));
        }