Here's how I ended up getting round the Constants required for Row values…
[RowTest()]
[Row(1, 1, null, ExpectedException = typeof(BLAH))]
[Row(1, 2, ("01 Jan 2006"))]
[Row(1, 3, ("01 Jan 1900"))]
[Row(1, 4, ("01 Jan 2050"), ExpectedException = typeof (BLAH))]
public void BLAH (int OneId, int TwoId, string OneDate)
{
DateTime myDate = Convert.ToDateTime(OneDate);
Assert.IsTrue(true);
}
Is that the right way to do it? Is there a better way?
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Stopford
Sent: 10 August 2006 23:53
To: [email protected]
Subject: MbUnit Re: RowTest and DateTime
Hi Phil,
I asume you mean the date type, you should be ok to use this type directly. Let me know how you get on.
Andy
On 8/10/06, Plip <[EMAIL PROTECTED]> wrote:
Just a quick question, should I pass DateTimes into my RowTests are
strings and then convert them to DateTimes once they get in there?
Thanks,
Phil.
--------------------------
received to: andyb.com
Message ID : o035526f9e13f4979a82f03c48cb4b067.pro
Sender ID : [EMAIL PROTECTED]
Msg Size : 2k
------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed.
If you have received this email in error please notify the originator of
the message. This footer also confirms that this email message has been
scanned for the presence of computer viruses, though it is not
guaranteed virus free.
Original Recipient: [email protected]
Original Sender : [EMAIL PROTECTED]
Original Send Date: 12/08/2006 - 11:50:48
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/MbUnitUser
-~----------~----~----~----~------~----~------~--~---
- MbUnit RowTest and DateTime Plip
- MbUnit Re: RowTest and DateTime Andrew Stopford
- MbUnit Re: RowTest and DateTime Phil Winstanley
- MbUnit Re: RowTest and DateTime Andrew Stopford
