public void Should_contain_tests_for() { var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); var runner = new Runner(); var assembly = Path.Combine(path, "AutoTest.TestRunners.NUnit.Tests.TestResource.dll"); Assert.That(runner.ContainsTestsFor(assembly), Is.True); }
public void Should_recognize_fixture() { var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); var runner = new Runner(); var assembly = Path.Combine(path, "AutoTest.TestRunners.NUnit.Tests.TestResource.dll"); var cls = "AutoTest.TestRunners.NUnit.Tests.TestResource.Fixture1"; Assert.That(runner.ContainsTestsFor(assembly, cls), Is.True); }
public void Should_recognize_testcase() { var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); var runner = new Runner(); var assembly = Path.Combine(path, "AutoTest.TestRunners.NUnit.Tests.TestResource.dll"); var method = "AutoTest.TestRunners.NUnit.Tests.TestResource.Fixture1.Should_fail"; Assert.That(runner.IsTest(assembly, method), Is.True); }