public virtual void AssemblySetUp(Result result)
        {
            if (result.State == TestState.Success)
                return;

            this.counter.FailureCount += this.assemblyCounter.TotalCount;
            this.assemblyCounter = null;
        }
        public virtual void AssemblyTearDown(Result result)
        {
            if (result.State == TestState.Success || this.assemblyCounter==null)
                return;

            this.counter.RollbackResults(this.assemblyCounter);
            this.counter.FailureCount += this.assemblyCounter.TotalCount;
            this.assemblyCounter = null;
        }
        public static TestCounter Add(TestCounter a, TestCounter b)
        {
            TestCounter c = new TestCounter(a.totalCount + b.totalCount);

            c.successCount = a.successCount + b.successCount;
            c.failureCount = a.failureCount + b.failureCount;
            c.ignoreCount  = a.ignoreCount + b.ignoreCount;
            return(c);
        }
 public static TestCounter Add(TestCounter a, TestCounter b)
 {
     TestCounter c = new TestCounter(a.totalCount + b.totalCount);
     c.successCount = a.successCount + b.successCount;
     c.failureCount = a.failureCount + b.failureCount;
     c.ignoreCount = a.ignoreCount + b.ignoreCount;
     return c;
 }
 public void RollbackResults(TestCounter counter)
 {
     this.failureCount -= counter.FailureCount;
     this.successCount -= counter.SuccessCount;
     this.ignoreCount -= counter.IgnoreCount;
 }
 public virtual void BeforeFixture(IFixture fixture, int testCaseCount)
 {
     this.fixtureCounter = new TestCounter(testCaseCount);
 }
 public virtual void AfterAssembly(TestAssembly testAssembly)
 {
     this.assemblyCounter = null;
 }
 public virtual void BeforeAssembly(TestAssembly testAssembly)
 {
     this.assemblyCounter = new TestCounter(testAssembly.GetTestCount());
 }
 public virtual void BeforeBatch(TestBatch batch)
 {
     this.counter = new TestCounter(batch.GetTestCount());
 }
Exemple #10
0
 public void RollbackResults(TestCounter counter)
 {
     this.failureCount -= counter.FailureCount;
     this.successCount -= counter.SuccessCount;
     this.ignoreCount  -= counter.IgnoreCount;
 }