1
// ****************************************************************
2
// Copyright 2008, Charlie Poole
3
// This is free software licensed under the NUnit license. You may
4
// obtain a copy of the license at http://nunit.org
5
// ****************************************************************
9
namespace NUnit.Framework
12
/// The ITestCaseData interface is implemented by a class
13
/// that is able to return complete testcases for use by
14
/// a parameterized test method.
16
/// NOTE: This interface is used in both the framework
17
/// and the core, even though that results in two different
18
/// types. However, sharing the source code guarantees that
19
/// the various implementations will be compatible and that
20
/// the core is able to reflect successfully over the
21
/// framework implementations of ITestCaseData.
23
public interface ITestCaseData
26
/// Gets the argument list to be provided to the test
28
object[] Arguments { get; }
31
/// Gets the expected result
33
object Result { get; }
36
/// Indicates whether a result has been specified.
37
/// This is necessary because the result may be
38
/// null, so it's value cannot be checked.
40
bool HasExpectedResult { get; }
43
/// Gets the expected exception Type
45
Type ExpectedException { get; }
48
/// Gets the FullName of the expected exception
50
string ExpectedExceptionName { get; }
53
/// Gets the name to be used for the test
55
string TestName { get; }
58
/// Gets the description of the test
60
string Description { get; }
63
/// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
65
/// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
69
/// Gets a value indicating whether this <see cref="ITestCaseData"/> is explicit.
71
/// <value><c>true</c> if explicit; otherwise, <c>false</c>.</value>
72
bool Explicit { get; }
75
/// Gets the ignore reason.
77
/// <value>The ignore reason.</value>
78
string IgnoreReason { get; }
1
// ****************************************************************
2
// Copyright 2008, Charlie Poole
3
// This is free software licensed under the NUnit license. You may
4
// obtain a copy of the license at http://nunit.org
5
// ****************************************************************
9
namespace NUnit.Framework
12
/// The ITestCaseData interface is implemented by a class
13
/// that is able to return complete testcases for use by
14
/// a parameterized test method.
16
/// NOTE: This interface is used in both the framework
17
/// and the core, even though that results in two different
18
/// types. However, sharing the source code guarantees that
19
/// the various implementations will be compatible and that
20
/// the core is able to reflect successfully over the
21
/// framework implementations of ITestCaseData.
23
public interface ITestCaseData
26
/// Gets the argument list to be provided to the test
28
object[] Arguments { get; }
31
/// Gets the expected result
33
object Result { get; }
36
/// Indicates whether a result has been specified.
37
/// This is necessary because the result may be
38
/// null, so it's value cannot be checked.
40
bool HasExpectedResult { get; }
43
/// Gets the expected exception Type
45
Type ExpectedException { get; }
48
/// Gets the FullName of the expected exception
50
string ExpectedExceptionName { get; }
53
/// Gets the name to be used for the test
55
string TestName { get; }
58
/// Gets the description of the test
60
string Description { get; }
63
/// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
65
/// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
69
/// Gets a value indicating whether this <see cref="ITestCaseData"/> is explicit.
71
/// <value><c>true</c> if explicit; otherwise, <c>false</c>.</value>
72
bool Explicit { get; }
75
/// Gets the ignore reason.
77
/// <value>The ignore reason.</value>
78
string IgnoreReason { get; }