~ubuntu-branches/debian/sid/nunit/sid

« back to all changes in this revision

Viewing changes to src/NUnitFramework/framework/ITestCaseData.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2014-09-16 13:43:36 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140916134336-kjxz48tty6lx2ja5
Tags: 2.6.3+dfsg-1
* [c7bd1b5] Imported Upstream version 2.6.3+dfsg
* [bcb4bf8] Move nunit-console-runner to GAC-installed libnunit2.6, 
  don't treat it as a private lib. This lib is signed, and treated 
  as a GAC lib by consumers such as MonoDevelop.
* [7f08e99] Bump version to 2.6.3 as required
* [84535eb] Refreshed patches
* [8479f61] Split package up into per-assembly packages. This makes 
  ABI tracking easier in the future, as we can meaningfully have GAC 
  policy for cases where ABI isn't truly bumped, and no policy for 
  cases where it is. For example, if nunit.framework bumps ABI but 
  nunit.core does not, previously we would need to rebuild everything 
  using NUnit, but under the new split packaging, that rebuild would 
  not be needed for apps only using nunit.core.
* [17a7dc7] Add missing nunit.mocks.dll to nunit.pc

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
// ****************************************************************
6
 
 
7
 
using System;
8
 
 
9
 
namespace NUnit.Framework
10
 
{
11
 
    /// <summary>
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.
15
 
    /// 
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.
22
 
    /// </summary>
23
 
    public interface ITestCaseData
24
 
    {
25
 
        /// <summary>
26
 
        /// Gets the argument list to be provided to the test
27
 
        /// </summary>
28
 
        object[] Arguments { get; }
29
 
 
30
 
        /// <summary>
31
 
        /// Gets the expected result
32
 
        /// </summary>
33
 
        object Result { get; }
34
 
 
35
 
        /// <summary>
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.
39
 
        /// </summary>
40
 
        bool HasExpectedResult { get; }
41
 
 
42
 
        /// <summary>
43
 
        ///  Gets the expected exception Type
44
 
        /// </summary>
45
 
        Type ExpectedException { get; }
46
 
 
47
 
        /// <summary>
48
 
        /// Gets the FullName of the expected exception
49
 
        /// </summary>
50
 
        string ExpectedExceptionName { get; }
51
 
 
52
 
        /// <summary>
53
 
        /// Gets the name to be used for the test
54
 
        /// </summary>
55
 
        string TestName { get; }
56
 
 
57
 
        /// <summary>
58
 
        /// Gets the description of the test
59
 
        /// </summary>
60
 
        string Description { get; }
61
 
 
62
 
        /// <summary>
63
 
        /// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
64
 
        /// </summary>
65
 
        /// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
66
 
        bool Ignored { get; }
67
 
 
68
 
        /// <summary>
69
 
        /// Gets a value indicating whether this <see cref="ITestCaseData"/> is explicit.
70
 
        /// </summary>
71
 
        /// <value><c>true</c> if explicit; otherwise, <c>false</c>.</value>
72
 
        bool Explicit { get; }
73
 
 
74
 
        /// <summary>
75
 
        /// Gets the ignore reason.
76
 
        /// </summary>
77
 
        /// <value>The ignore reason.</value>
78
 
        string IgnoreReason { get; }
79
 
    }
80
 
}
 
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
// ****************************************************************
 
6
 
 
7
using System;
 
8
 
 
9
namespace NUnit.Framework
 
10
{
 
11
    /// <summary>
 
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.
 
15
    /// 
 
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.
 
22
    /// </summary>
 
23
    public interface ITestCaseData
 
24
    {
 
25
        /// <summary>
 
26
        /// Gets the argument list to be provided to the test
 
27
        /// </summary>
 
28
        object[] Arguments { get; }
 
29
 
 
30
        /// <summary>
 
31
        /// Gets the expected result
 
32
        /// </summary>
 
33
        object Result { get; }
 
34
 
 
35
        /// <summary>
 
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.
 
39
        /// </summary>
 
40
        bool HasExpectedResult { get; }
 
41
 
 
42
        /// <summary>
 
43
        ///  Gets the expected exception Type
 
44
        /// </summary>
 
45
        Type ExpectedException { get; }
 
46
 
 
47
        /// <summary>
 
48
        /// Gets the FullName of the expected exception
 
49
        /// </summary>
 
50
        string ExpectedExceptionName { get; }
 
51
 
 
52
        /// <summary>
 
53
        /// Gets the name to be used for the test
 
54
        /// </summary>
 
55
        string TestName { get; }
 
56
 
 
57
        /// <summary>
 
58
        /// Gets the description of the test
 
59
        /// </summary>
 
60
        string Description { get; }
 
61
 
 
62
        /// <summary>
 
63
        /// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
 
64
        /// </summary>
 
65
        /// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
 
66
        bool Ignored { get; }
 
67
 
 
68
        /// <summary>
 
69
        /// Gets a value indicating whether this <see cref="ITestCaseData"/> is explicit.
 
70
        /// </summary>
 
71
        /// <value><c>true</c> if explicit; otherwise, <c>false</c>.</value>
 
72
        bool Explicit { get; }
 
73
 
 
74
        /// <summary>
 
75
        /// Gets the ignore reason.
 
76
        /// </summary>
 
77
        /// <value>The ignore reason.</value>
 
78
        string IgnoreReason { get; }
 
79
    }
 
80
}