|
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 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:
--~--~---------~--~----~------------~-------~--~----~ 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
