Exemplo n.º 1
0
 private void getNamespace(XmlTextReader reader)
 {
     reader.Read();
     if (!_currentAssembly.Namespaces.Contains(reader.Value))
     {
         _currentAssembly.AddNamespace(reader.Value);
     }
 }
 public void When_told_to_run_a_namespace_it_reports_all_tests_in_namespace()
 {
     var runner = new Runner();
     var options = new AssemblyOptions(getAssembly());
     options.AddNamespace("AutoTest.TestRunners.MSpec.Tests.TestResource");
     var settings = new RunSettings(options, new string[] { }, null);
     var result = runner.Run(settings);
     Assert.That(result.Count(), Is.EqualTo(4));
 }
Exemplo n.º 3
0
 private void getNamespace(XmlTextReader reader)
 {
     reader.Read();
     _currentAssembly.AddNamespace(reader.Value);
 }
Exemplo n.º 4
0
 public void Should_run_tests_from_namespace()
 {
     var assembly = new AssemblyOptions(
         Path.GetFullPath(@"AutoTest.TestRunners.NUnit.Tests.TestResource.dll")
     );
     assembly.AddNamespace("AutoTest.TestRunners.NUnit.Tests.TestResource");
     var options = new RunSettings(assembly, new string[] {}, "feedback_pipe");
     var results = _runner.Run(options);
     Assert.That(results.Count(), Is.EqualTo(9));
 }
Exemplo n.º 5
0
 public void Should_run_test_for_namespace()
 {
     var assemblyPath = Path.GetFullPath(@"AutoTest.TestRunners.MSTest.Tests.TestResource.dll");
     var assembly = new AssemblyOptions(assemblyPath);
     assembly.AddNamespace("AutoTest.TestRunners.MSTest.Tests.TestResource.SomeNamespace");
     var settings = new RunSettings(assembly, new string[] { }, null);
     var runner = new Runner();
     var result = runner.Run(settings);
     Assert.That(result.Count(), Is.EqualTo(4));
 }