public void TestGetSuiteRunsOnTestitemRun() { DateTime testTime = DateTime.Now; TCLogReader reader = new TCLogReader(GetTestXml(3), testTime, null); ICollection<SuiteRun> suiteRuns = reader.SuiteRuns; Assert.AreEqual(1, suiteRuns.Count, "ItemRun:suiteRuns.Count"); IEnumerator<SuiteRun> numer = suiteRuns.GetEnumerator(); numer.MoveNext(); Verify(numer.Current, ".", 0, 1, 0, null); }
public void TestGetTestRunsOnTestitemRun() { DateTime testTime = DateTime.Now; TCLogReader reader = new TCLogReader(GetTestXml(3), testTime, null); ICollection<TestRun> testRuns = reader.TestRuns; Assert.AreEqual(1, testRuns.Count, "ItemRun:testRuns.Count"); IEnumerator<TestRun> numer = testRuns.GetEnumerator(); numer.MoveNext(); Verify(numer.Current, TestRun.TestRunState.Failed, ".ProjectTestItem2", null, 7); }
public void TestEmptyTestRuns() { DateTime testTime = DateTime.Now; TCLogReader reader = new TCLogReader(new XmlDocument(), testTime, null); ICollection<TestRun> testRuns = reader.TestRuns; Assert.AreEqual(0, testRuns.Count, "EmptyRun:testRuns.Count"); ICollection<SuiteRun> suiteRuns = reader.SuiteRuns; Assert.AreEqual(0, suiteRuns.Count, "EmptyRun:suiteRuns.Count"); }