Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/nunit/src/NUnitCore/ExpectExceptionAttribute.cs')
-rw-r--r--mcs/nunit/src/NUnitCore/ExpectExceptionAttribute.cs47
1 files changed, 0 insertions, 47 deletions
diff --git a/mcs/nunit/src/NUnitCore/ExpectExceptionAttribute.cs b/mcs/nunit/src/NUnitCore/ExpectExceptionAttribute.cs
deleted file mode 100644
index 401049da416..00000000000
--- a/mcs/nunit/src/NUnitCore/ExpectExceptionAttribute.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-namespace NUnit.Framework {
- using System;
-
- /// <summary>
- /// The given exception should be thrown by the annotated method.
- /// </summary>
- /// <remarks>
- /// To use this attribute, attach it to a method in a
- /// <see cref="TestCase"/> subclass.
- /// <example>Here is an example:
- /// <code>
- /// public class FooTest : TestCase {
- /// public ExpectExceptionTest(string name) : base(name) {}
- /// [ExpectException(typeof(ArgumentException))]
- /// [ExpectException(typeof(IndexOutOfRangeException))]
- /// public void TestBar() {
- /// throw new ArgumentException("bad argument");
- /// }
- /// }
- /// </code>
- /// </example>
- /// </remarks>
- [AttributeUsage(AttributeTargets.Method, AllowMultiple=true)]
- public class ExpectExceptionAttribute : Attribute {
- private Type expected;
- /// <summary>
- ///
- /// </summary>
- /// <param name="exceptionExpected"></param>
- public ExpectExceptionAttribute(Type exceptionExpected) {
- this.expected = exceptionExpected;
- }
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- public override string ToString() {
- return expected.ToString();
- }
- /// <summary>
- ///
- /// </summary>
- public Type ExceptionExpected {
- get { return expected; }
- }
- }
-}