public void UpdateCounter() { this.counter = new XmlCounter(); // the fixture setup/teardown run and failed ? if ((this.FixtureSetUp != null && this.FixtureSetUp.State != TestState.Success) || (this.FixtureTearDown != null && this.FixtureTearDown.State != TestState.Success) ) { this.counter.FailureCount = this.testCaseCount; } else { foreach (XmlTestCase test in this.TestCases) { switch (test.State) { case TestState.Success: this.counter.SuccessCount++; break; case TestState.Failure: this.counter.FailureCount++; break; case TestState.Ignore: this.counter.IgnoreCount++; break; case TestState.NotRun: this.counter.NotRunCount++; break; } } } this.counter.Update(); }
public static XmlCounter Add(XmlCounter left, XmlCounter right) { XmlCounter counter = new XmlCounter(); counter.TotalCount = left.TotalCount + right.TotalCount; counter.SuccessCount = left.SuccessCount + right.SuccessCount; counter.FailureCount = left.FailureCount + right.FailureCount; counter.IgnoreCount = left.IgnoreCount + right.IgnoreCount; counter.notRunCount = left.notRunCount + right.notRunCount; return counter; }
public static XmlCounter Add(XmlCounter left, XmlCounter right) { XmlCounter counter = new XmlCounter(); counter.TotalCount = left.TotalCount + right.TotalCount; counter.SuccessCount = left.SuccessCount + right.SuccessCount; counter.FailureCount = left.FailureCount + right.FailureCount; counter.IgnoreCount = left.IgnoreCount + right.IgnoreCount; counter.notRunCount = left.notRunCount + right.notRunCount; return(counter); }
public void UpdateCounter() { this.counter = new XmlCounter(); this.duration = 0; foreach (XmlFixture fixture in this.Fixtures) { fixture.UpdateCounter(); this.counter = this.counter + fixture.Counter; this.duration += fixture.Duration; } }
public void UpdateCounter() { this.counter = new XmlCounter(); this.duration = 0; foreach (XmlTestAssembly testAssembly in this.TestAssemblies) { testAssembly.UpdateCounter(); this.counter = this.counter + testAssembly.Counter; this.duration += testAssembly.Duration; } }
public void UpdateCounter() { this.counter = new XmlCounter(); // the fixture setup/teardown run and failed ? if ((this.FixtureSetUp != null && this.FixtureSetUp.State != TestState.Success) || (this.FixtureTearDown != null && this.FixtureTearDown.State != TestState.Success) ) { this.counter.FailureCount = this.testCaseCount; } else { foreach (XmlTestCase test in this.TestCases) { switch (test.State) { case TestState.Success: this.counter.SuccessCount++; break; case TestState.Failure: this.counter.FailureCount++; break; case TestState.Ignore: this.counter.IgnoreCount++; break; case TestState.NotRun: this.counter.NotRunCount++; break; } } } this.counter.Update(); }
public void UpdateCounter() { this.counter = new XmlCounter(); this.duration = 0; foreach (XmlFixture fixture in this.Fixtures) { fixture.UpdateCounter(); this.counter = this.counter + fixture.Counter; this.duration += fixture.Duration; } }
public void UpdateCounter() { this.counter = new XmlCounter(); this.duration = 0; foreach (XmlTestAssembly testAssembly in this.TestAssemblies) { testAssembly.UpdateCounter(); this.counter = this.counter + testAssembly.Counter; this.duration += testAssembly.Duration; } }