public virtual void VisitFixture(ReportFixture fixture) { if (fixture.SetUp != null) VisitFixtureSetUp(fixture.SetUp); if (fixture.TearDown != null) VisitFixtureTearDown(fixture.TearDown); foreach (ReportRun run in fixture.Runs) this.VisitRun(run); }
public virtual void VisitFixture(ReportFixture fixture) { if (fixture.SetUp != null) { VisitFixtureSetUp(fixture.SetUp); } if (fixture.TearDown != null) { VisitFixtureTearDown(fixture.TearDown); } foreach (ReportRun run in fixture.Runs) { this.VisitRun(run); } }
private ReportFixture AddFixture(Fixture fixture) { ReportFixture reportFixture = this.fixtures[fixture] as ReportFixture; if (reportFixture != null) { return(reportFixture); } reportFixture = new ReportFixture(); reportFixture.Name = fixture.Name; reportFixture.Type = fixture.Type.FullName; // store in table this.fixtures[fixture] = reportFixture; // add to corresponding namespace ReportNamespace ns = AddNamespace(fixture.Type); ns.Fixtures.AddReportFixture(reportFixture); return(reportFixture); }
/// <summary /> /// <remarks /> public void AddReportFixture(ReportFixture o) { this.List.Add(o); }
private ReportFixture AddFixture(Fixture fixture) { ReportFixture reportFixture = this.fixtures[fixture] as ReportFixture; if (reportFixture!=null) return reportFixture; reportFixture = new ReportFixture(); reportFixture.Name = fixture.Name; reportFixture.Type = fixture.Type.FullName; // store in table this.fixtures[fixture] = reportFixture; // add to corresponding namespace ReportNamespace ns = AddNamespace(fixture.Type); ns.Fixtures.AddReportFixture(reportFixture); return reportFixture; }
void IRunPipeListener.Skip(RunPipe pipe, ReportRun result) { ReportFixture fixture = AddFixture(pipe.Fixture); fixture.Runs.AddReportRun(result); }
void IRunPipeListener.Start(RunPipe pipe) { // find ficture ReportFixture fixture = AddFixture(pipe.Fixture); }
public void TestFixtureTearDown(Fixture fixture, ReportSetUpAndTearDown tearDown) { ReportFixture reportFixture = this.AddFixture(fixture); reportFixture.TearDown = tearDown; }
public override void VisitFixture(ReportFixture fixture) { this.explorer.fixtureByTypes[fixture.Type] = fixture; base.VisitFixture(fixture); }
public override void VisitFixture(ReportFixture fixture) { string pretty = dox.Pretifier.PretifyFixture(fixture.Name); writer.WriteLine("{0}{1}",this.tab,pretty); base.VisitFixture(fixture); }
/// <summary /> /// <remarks /> public void RemoveReportFixture(ReportFixture o) { this.List.Remove(o); }
/// <summary /> /// <remarks /> public bool ContainsReportFixture(ReportFixture o) { return(this.List.Contains(o)); }
/// <summary /> /// <remarks /> public bool ContainsReportFixture(ReportFixture o) { return this.List.Contains(o); }
public void TestFixtureSetUp(Fixture fixture, ReportSetUpAndTearDown setUp) { ReportFixture reportFixture = this.AddFixture(fixture); reportFixture.SetUp = setUp; }