/src/NUnit/interfaces/Extensibility/ITestCaseData.cs
C# | 67 lines | 15 code | 9 blank | 43 comment | 0 complexity | b815cad6895f64ad9f18c2b644745dbc MD5 | raw file
Possible License(s): GPL-2.0
- // ****************************************************************
- // Copyright 2008, Charlie Poole
- // This is free software licensed under the NUnit license. You may
- // obtain a copy of the license at http://nunit.org
- // ****************************************************************
-
- using System;
-
- namespace NUnit.Framework
- {
- /// <summary>
- /// The ITestCaseData interface is implemented by a class
- /// that is able to return complete testcases for use by
- /// a parameterized test method.
- ///
- /// NOTE: This interface is used in both the framework
- /// and the core, even though that results in two different
- /// types. However, sharing the source code guarantees that
- /// the various implementations will be compatible and that
- /// the core is able to reflect successfully over the
- /// framework implementations of ITestCaseData.
- /// </summary>
- public interface ITestCaseData
- {
- /// <summary>
- /// Gets the argument list to be provided to the test
- /// </summary>
- object[] Arguments { get; }
-
- /// <summary>
- /// Gets the expected result
- /// </summary>
- object Result { get; }
-
- /// <summary>
- /// Gets the expected exception Type
- /// </summary>
- Type ExpectedException { get; }
-
- /// <summary>
- /// Gets the FullName of the expected exception
- /// </summary>
- string ExpectedExceptionName { get; }
-
- /// <summary>
- /// Gets the name to be used for the test
- /// </summary>
- string TestName { get; }
-
- /// <summary>
- /// Gets the description of the test
- /// </summary>
- string Description { get; }
-
- /// <summary>
- /// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
- /// </summary>
- /// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
- bool Ignored { get; }
-
- /// <summary>
- /// Gets the ignore reason.
- /// </summary>
- /// <value>The ignore reason.</value>
- string IgnoreReason { get; }
- }
- }