blob: ed0a08ed73c874472671948d1f36106befed58a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
namespace NUnit.Runner
{
using System;
using NUnit.Framework;
using System.Runtime.Serialization;
/// <summary>
/// Basic contract governing loading of tests
/// </summary>
public interface ITestLoader
{
/// <summary>
/// Loads an instance of the test class specified by the name.
/// Loadable in most cases will be an assembly qualified name.
///
/// Other loaders could dynamically construct a test case from
/// an XML file or a database record.
/// </summary>
ITest LoadTest(string loadableName);
/// <summary>
/// Return the name used by the loader to load an instance
/// of the supplied test
/// </summary>
/// <param name="test"></param>
/// <returns></returns>
string GetLoadName(ITest test);
}
/// <summary>
/// Error thrown during assembly and class loading problems
/// </summary>
[Serializable]
public class LoaderException : NUnitException
{
/// <summary>
/// Serialization Constructor
/// </summary>
protected LoaderException(SerializationInfo info,
StreamingContext context) : base(info,context){}
/// <summary>
/// Standard constructor
/// </summary>
/// <param name="message">The error message that explains
/// the reason for the exception</param>
/// <param name="innerException">The exception that caused the
/// current exception</param>
public LoaderException(string message, Exception innerException) :
base(message, innerException) {}
/// <summary>
/// Standard constructor
/// </summary>
/// <param name="message">The error message that explains
/// the reason for the exception</param>
public LoaderException(string message) :
base(message) {}
}
}
|