/src/NUnit/core/LegacySuite.cs
C# | 26 lines | 16 code | 2 blank | 8 comment | 0 complexity | 219f167b202bbe405d8a7b489cd5f287 MD5 | raw file
1// **************************************************************** 2// This is free software licensed under the NUnit license. You 3// may obtain a copy of the license as well as information regarding 4// copyright ownership at http://nunit.org. 5// **************************************************************** 6 7using System; 8using System.Collections; 9using System.Reflection; 10 11namespace NUnit.Core 12{ 13 /// <summary> 14 /// Represents a test suite constructed from a type that has a static Suite property 15 /// </summary> 16 public class LegacySuite : TestSuite 17 { 18 public LegacySuite( Type fixtureType ) : base( fixtureType ) 19 { 20 this.fixtureSetUpMethods = 21 Reflect.GetMethodsWithAttribute(fixtureType, NUnitFramework.FixtureSetUpAttribute, true); 22 this.fixtureTearDownMethods = 23 Reflect.GetMethodsWithAttribute(fixtureType, NUnitFramework.FixtureTearDownAttribute, true); 24 } 25 } 26}