public SetUpFixture(Type type) : base(type) { this.TestName.Name = type.Namespace; if (this.TestName.Name == null) { this.TestName.Name = "[default namespace]"; } int index = TestName.Name.LastIndexOf('.'); if (index > 0) { this.TestName.Name = this.TestName.Name.Substring(index + 1); } this.fixtureSetUp = NUnitFramework.GetSetUpMethod(type); this.fixtureTearDown = NUnitFramework.GetTearDownMethod(type); }
public NUnitTestMethod(MethodInfo method) : base(method) { this.setUpMethod = NUnitFramework.GetSetUpMethod(this.FixtureType); this.tearDownMethod = NUnitFramework.GetTearDownMethod(this.FixtureType); }