public void ExcludeClass_prevents_executing_any_tests_on_a_class() { 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.ExcludeClass("ConstructorParameterNotMapped"); sut.TestAssembly(); }