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))); }
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")); }