PageRenderTime 41ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/core/TestFixture.cs

#
C# | 44 lines | 26 code | 5 blank | 13 comment | 0 complexity | 0d478df3f91eb791bb9ab3c0daa7eb08 MD5 | raw file
Possible License(s): GPL-2.0
  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. using System;
  7. namespace NUnit.Core
  8. {
  9. /// <summary>
  10. /// TestFixture is a surrogate for a user test fixture class,
  11. /// containing one or more tests.
  12. /// </summary>
  13. public class TestFixture : TestSuite
  14. {
  15. #region Constructors
  16. public TestFixture(Type fixtureType)
  17. : base(fixtureType) { }
  18. public TestFixture(Type fixtureType, object[] arguments)
  19. : base(fixtureType, arguments) { }
  20. #endregion
  21. #region TestSuite Overrides
  22. /// <summary>
  23. /// Gets a string representing the kind of test
  24. /// that this object represents, for use in display.
  25. /// </summary>
  26. public override string TestType
  27. {
  28. get { return "TestFixture"; }
  29. }
  30. public override TestResult Run(EventListener listener, ITestFilter filter)
  31. {
  32. using ( new DirectorySwapper( AssemblyHelper.GetDirectoryName( FixtureType.Assembly ) ) )
  33. {
  34. return base.Run(listener, filter);
  35. }
  36. }
  37. #endregion
  38. }
  39. }