예제 #1
0
        public void WhenStateListIsEmpty_IsStateEnabledIsFalse()
        {
            // Arrange.
            var vm1 = new ConstantDialogViewModel();
            var vm2 = new ConstantDialogViewModel();
            vm2.StateList.Add(new StateInfo());

            // Act / Assert.
            Assert.IsFalse(vm1.IsStateEnabled);
            Assert.IsTrue(vm2.IsStateEnabled);
        }
예제 #2
0
 public void PropertiesTests()
 {
     var vm = new ConstantDialogViewModel();
     TestsHelper.TestPublicDeclaredPropertiesGetSet(vm, true);
 }