PageRenderTime 33ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/src/NUnit/util/Interfaces/ITestLoader.cs

#
C# | 83 lines | 32 code | 24 blank | 27 comment | 0 complexity | d14ad68816d981ac96d6681f14aa3ee7 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. using System.Collections;
  8. using NUnit.Core;
  9. namespace NUnit.Util
  10. {
  11. /// <summary>
  12. /// The ITestLoader interface supports the loading and running
  13. /// of tests in a remote domain.
  14. /// </summary>
  15. public interface ITestLoader
  16. {
  17. #region Properties
  18. // See if a project is loaded
  19. bool IsProjectLoaded { get; }
  20. // See if a test has been loaded from the project
  21. bool IsTestLoaded { get; }
  22. // See if a test is running
  23. bool Running { get; }
  24. // The loaded test project
  25. NUnitProject TestProject { get; }
  26. string TestFileName { get; }
  27. // Our last test results
  28. TestResult TestResult { get; }
  29. #endregion
  30. #region Methods
  31. // Create a new empty project using a default name
  32. void NewProject();
  33. // Create a new project given a filename
  34. void NewProject( string filename );
  35. // Load a project given a filename
  36. void LoadProject( string filename );
  37. // Load a project given a filename and config
  38. void LoadProject( string filename, string configname );
  39. // Load a project given an array of assemblies
  40. void LoadProject( string[] assemblies );
  41. // Unload current project
  42. void UnloadProject();
  43. // Load tests for current project and config
  44. void LoadTest();
  45. // Load a specific test for current project and config
  46. void LoadTest( string testName );
  47. // Unload current test
  48. void UnloadTest();
  49. // Reload current test
  50. void ReloadTest();
  51. // Run all tests
  52. void RunTests();
  53. // Run specific tests
  54. void RunTests( ITestFilter filter );
  55. // Cancel the running test
  56. void CancelTestRun();
  57. #endregion
  58. }
  59. }