/src/NUnit/core/LegacySuite.cs
# · C# · 26 lines · 16 code · 2 blank · 8 comment · 0 complexity · 219f167b202bbe405d8a7b489cd5f287 MD5 · raw file
- // ****************************************************************
- // This is free software licensed under the NUnit license. You
- // may obtain a copy of the license as well as information regarding
- // copyright ownership at http://nunit.org.
- // ****************************************************************
-
- using System;
- using System.Collections;
- using System.Reflection;
-
- namespace NUnit.Core
- {
- /// <summary>
- /// Represents a test suite constructed from a type that has a static Suite property
- /// </summary>
- public class LegacySuite : TestSuite
- {
- public LegacySuite( Type fixtureType ) : base( fixtureType )
- {
- this.fixtureSetUpMethods =
- Reflect.GetMethodsWithAttribute(fixtureType, NUnitFramework.FixtureSetUpAttribute, true);
- this.fixtureTearDownMethods =
- Reflect.GetMethodsWithAttribute(fixtureType, NUnitFramework.FixtureTearDownAttribute, true);
- }
- }
- }