public void Should_get_test_pr_runner() { _info.AddTestsToRun(TestRunner.MSTest, "MyAssembly.MyClass.MyTest"); _info.AddTestsToRun(TestRunner.NUnit, "MyAssembly2.Class.AnotherTest"); var tests = _info.GetTestsFor(TestRunner.NUnit); tests.Length.ShouldEqual(1); tests[0].ShouldEqual("MyAssembly2.Class.AnotherTest"); }
private static bool infoContainsTest(RunInfo info, TestItem test) { return(info.GetTestsFor(test.Value.Runner).Any(infoTest => infoTest.Equals(test.Value.Name))); }