2009-12-02 Jb Evain <jbevain@novell.com>
[mcs.git] / nunit24 / NUnitExtensions / framework / RowAttribute.cs
blob6d656221a70a51ffe73fe57992785f89417552b9
1 // *********************************************************************
2 // Copyright 2007, Andreas Schlapsi
3 // This is free software licensed under the MIT license.
4 // *********************************************************************
5 using System;
7 namespace NUnitExtension.RowTest
9 [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
10 public sealed class RowAttribute : Attribute
12 private string _testName;
13 private object[] _arguments;
14 private string _description;
15 private Type _expectedExceptionType;
16 private string _exceptionMessage;
18 public RowAttribute(object argument1)
20 _arguments = new object[] { argument1 };
23 public RowAttribute(object argument1, object argument2)
25 _arguments = new object[] { argument1, argument2 };
28 public RowAttribute(object argument1, object argument2, object argument3)
30 _arguments = new object[] { argument1, argument2, argument3 };
33 public RowAttribute(params object[] arguments)
35 _arguments = arguments;
38 public string TestName
40 get { return _testName; }
41 set { _testName = value; }
44 public object[] Arguments
46 get { return _arguments; }
49 public string Description
51 get { return _description; }
52 set { _description = value; }
55 public Type ExpectedException
57 get { return _expectedExceptionType; }
58 set { _expectedExceptionType = value; }
61 public string ExceptionMessage
63 get { return _exceptionMessage; }
64 set { _exceptionMessage = value; }