protected override TestResults GetResults(string testFixtureName) { Trace.Assert(!String.IsNullOrWhiteSpace(testFixtureName)); TestResults res = new TestResults(testFixtureName); foreach (KeyValuePair<string, object> testResult in (IDictionary<string, object>) js.GetGlobal("results")) { if (testResult.Value == null) { res.AddPassedTest(testResult.Key); } else { res.AddFailedTest(testResult.Key); } } return res; }
void Assert_FailedTest(object sender, TestEventArgs e) { _testResults.AddFailedTest(e.TestClass, e); }