[Mono-dev] Incorrect VB test?
Sasha Kogan
sashak at mainsoft.com
Thu Jul 5 11:46:33 EDT 2007
In DateAdd() (DateAndTimeTests.cs: 141) System.Exception is checked to
be thrown, while MSDN (
http://msdn2.microsoft.com/en-us/library/hcxe65wz(VS.80).aspx )states
ArgumentOutOfRangeException should be thrown in this case. So, what's
the reason to check for System.Exception here?
BTW, on .NET 2.0 DateAndTime.DateAdd(DateInterval.Year, int.MinValue,
DateTime.Now) executes with no exception and just returns the third arg
as-is.
10x,
/Sasha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070705/48866c95/attachment.html
More information about the Mono-devel-list
mailing list