[Adapdev-commits] Adapdev/src/Adapdev.UnitTest ExpectedExceptionAttribute.cs,1.1.1.1,1.2
Status: Beta
Brought to you by:
intesar66
From: Sean M. <int...@us...> - 2005-04-27 04:36:14
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11385/src/Adapdev.UnitTest Modified Files: ExpectedExceptionAttribute.cs Log Message: Added stored procedure parameter lengths for appropriate types for Codus Added external config file support for Zanebug Added ExpectedException message support Index: ExpectedExceptionAttribute.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.UnitTest/ExpectedExceptionAttribute.cs,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ExpectedExceptionAttribute.cs 28 Feb 2005 01:32:19 -0000 1.1.1.1 --- ExpectedExceptionAttribute.cs 27 Apr 2005 04:36:03 -0000 1.2 *************** *** 56,60 **** public sealed class ExpectedExceptionAttribute : Attribute { ! private string expectedException; /// <summary> --- 56,61 ---- public sealed class ExpectedExceptionAttribute : Attribute { ! private string expectedException = String.Empty; ! private string message = String.Empty; /// <summary> *************** *** 66,69 **** --- 67,76 ---- } + public string Message + { + get { return this.message;} + set { this.message = value;} + } + /// <summary> /// Constructor *************** *** 74,77 **** --- 81,90 ---- expectedException = exception.FullName; } + + public ExpectedExceptionAttribute(Type exception, string message) + { + this.expectedException = exception.FullName; + this.message = message; + } } } \ No newline at end of file |