示例#1
0
 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);
 }
示例#2
0
 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);
 }