1 // ****************************************************************
\r
2 // This is free software licensed under the NUnit license. You
\r
3 // may obtain a copy of the license as well as information regarding
\r
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
\r
5 // ****************************************************************
\r
8 using System.Reflection;
\r
10 namespace NUnit.Core
\r
13 /// Class to implement an NUnit test fixture
\r
15 public class NUnitTestFixture : TestFixture
\r
17 public NUnitTestFixture(Type fixtureType) : base( fixtureType)
\r
19 this.fixtureSetUp = NUnitFramework.GetFixtureSetUpMethod( fixtureType );
\r
20 this.fixtureTearDown = NUnitFramework.GetFixtureTearDownMethod( fixtureType );
\r
23 protected override void DoOneTimeSetUp(TestResult suiteResult)
\r
25 base.DoOneTimeSetUp(suiteResult);
\r
27 suiteResult.AssertCount = NUnitFramework.GetAssertCount(); ;
\r
30 protected override void DoOneTimeTearDown(TestResult suiteResult)
\r
32 base.DoOneTimeTearDown(suiteResult);
\r
34 suiteResult.AssertCount += NUnitFramework.GetAssertCount();
\r