Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 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);
 }