public void Test(string testDll, Variable<int> performed, Variable<int> total) { bool success = false; try { success = MakeTestFromCommandLine(_testDomain, testDll); } catch(System.IO.FileNotFoundException) { new Message("Failed opening " + testDll); return; } if (!success) { Console.Error.WriteLine("Unable to locate fixture"); return; } total.Value = _testRunner.CountTestCases(TestFilter.Empty); var collector = new EventCollector(Console.Out, Console.Error, performed); var result = _testRunner.Run(collector); }
public void Test(string testDll, Variable <int> performed, Variable <int> total) { bool success = false; try { success = MakeTestFromCommandLine(_testDomain, testDll); } catch (System.IO.FileNotFoundException) { new Message("Failed opening " + testDll); return; } if (!success) { Console.Error.WriteLine("Unable to locate fixture"); return; } total.Value = _testRunner.CountTestCases(TestFilter.Empty); var collector = new EventCollector(Console.Out, Console.Error, performed); var result = _testRunner.Run(collector); }