namespace NUnit.Runner
{
using System;
using NUnit.Framework;
using System.Runtime.Serialization;
///
/// Basic contract governing loading of tests
///
public interface ITestLoader
{
///
/// 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.
///
ITest LoadTest(string loadableName);
///
/// Return the name used by the loader to load an instance
/// of the supplied test
///
///
///
string GetLoadName(ITest test);
}
///
/// Error thrown during assembly and class loading problems
///
[Serializable]
public class LoaderException : NUnitException
{
///
/// Serialization Constructor
///
protected LoaderException(SerializationInfo info,
StreamingContext context) : base(info,context){}
///
/// Standard constructor
///
/// The error message that explains
/// the reason for the exception
/// The exception that caused the
/// current exception
public LoaderException(string message, Exception innerException) :
base(message, innerException) {}
///
/// Standard constructor
///
/// The error message that explains
/// the reason for the exception
public LoaderException(string message) :
base(message) {}
}
}