示例#1
0
        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;
        }
示例#2
0
 void Assert_FailedTest(object sender, TestEventArgs e)
 {
     _testResults.AddFailedTest(e.TestClass, e);
 }