コード例 #1
0
        public void ExcludeProperty_prevents_testing_a_property()
        {
            var sut = new AssemblyTester(Assembly.Load("NSimpleTester.Tests.PropertyErrors"));

            // verity the assembly has issues first so we know the test is valid.
            Assert.Throws <InvalidOperationException>(() => sut.TestAssembly());

            sut.ExcludeProperty("TestTypeWBadINotifyPropertyChanged", "PropertyTwo");

            sut.TestAssembly();
        }