Exemplo n.º 1
0
        public void IsVisible_IsFalse_ByDefault()
        {
            StubBasicWindow systemUnderTest = new StubBasicWindow();

            bool isVisible = systemUnderTest.ViewModel.GetPropertyValue <bool>(BasicWindowPM.VISIBLE_PROPERTY);

            Assert.IsFalse(isVisible);
        }
Exemplo n.º 2
0
        public void OnHide_IsVisible_IsFalse()
        {
            StubBasicWindow systemUnderTest = new StubBasicWindow();

            systemUnderTest.ViewModel.SetProperty(BasicWindowPM.VISIBLE_PROPERTY, true);
            systemUnderTest.Hide();

            bool isVisible = systemUnderTest.ViewModel.GetPropertyValue <bool>(BasicWindowPM.VISIBLE_PROPERTY);

            Assert.IsFalse(isVisible);
        }