Beispiel #1
0
        public void BaseVM_IgnoredProperties()
        {
            var vm = new TestVM();

            Assert.IsNotNull(vm.IgnoredProperties);
            Assert.IsTrue(vm.IgnoredProperties.Contains("IgnoreMe"));

            Assert.IsFalse(vm.IgnoredProperties.Contains("Bool"));
            vm.Ignore(() => vm.Bool);
            Assert.IsTrue(vm.IgnoredProperties.Contains("Bool"));

            Assert.IsFalse(vm.IgnoredProperties.Contains(nameof(TestVM.Double)));
            vm.Ignore(nameof(TestVM.Double));
            Assert.IsTrue(vm.IgnoredProperties.Contains(nameof(TestVM.Double)));
        }
Beispiel #2
0
        public void BaseVM_IgnoredProperties()
        {
            var vm = new TestVM();

             Assert.IsNotNull(vm.IgnoredProperties);
             Assert.IsTrue(vm.IgnoredProperties.Contains("IgnoreMe"));

             Assert.IsFalse(vm.IgnoredProperties.Contains("Bool"));
             vm.Ignore(() => vm.Bool);
             Assert.IsTrue(vm.IgnoredProperties.Contains("Bool"));
        }