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

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

            sut.ExcludeConstructorTests();

            sut.TestAssembly();
        }