PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

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

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