Merge pull request #3142 from henricm/fix-for-win-mono_string_to_utf8
[mono.git] / mcs / nunit24 / NUnitCore / core / NUnitTestFixture.cs
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
6 \r
7 using System;\r
8 using System.Reflection;\r
9 \r
10 namespace NUnit.Core\r
11 {\r
12     /// <summary>\r
13     /// Class to implement an NUnit test fixture\r
14     /// </summary>\r
15     public class NUnitTestFixture : TestFixture\r
16     {\r
17         public NUnitTestFixture(Type fixtureType) : base( fixtureType)\r
18         {\r
19             this.fixtureSetUp = NUnitFramework.GetFixtureSetUpMethod( fixtureType );\r
20             this.fixtureTearDown = NUnitFramework.GetFixtureTearDownMethod( fixtureType );\r
21         }\r
22 \r
23         protected override void DoOneTimeSetUp(TestResult suiteResult)\r
24         {\r
25             base.DoOneTimeSetUp(suiteResult);\r
26 \r
27                         suiteResult.AssertCount = NUnitFramework.GetAssertCount(); ;\r
28         }\r
29 \r
30         protected override void DoOneTimeTearDown(TestResult suiteResult)\r
31         {\r
32             base.DoOneTimeTearDown(suiteResult);\r
33 \r
34                         suiteResult.AssertCount += NUnitFramework.GetAssertCount();\r
35         }\r
36     }\r
37 }\r