Hi again

The example I gave:

>    [RowTest]
>    [Row(null, typeof(MyBar), typeof(MyFoo())]
>    public void MyTest(object x, MyBar mb, MyFoo mf) { }

Could be also implemented using another syntax:

    [RowTest]
    [Row(SpecialValue.Null, SpecialValue.NewInstance,
SpecialValue.NewInstance, "hello"]
    public void MyTest(object x, MyBar mb, MyFoo mf, string x)
    {
         Assert.IsNull(x);
         Assert.IsNotNull(mb);
         Assert.IsNotNull(mf);
         Assert.IsNotNull(x);
    }

MbUnit would then replace each occurrence of SpecialValue.NewInstance
by a new instance
of the right type (if there is a parameterless constructor for the
class) and each occurence of
SpecialValue.Null by null.

What do you think?


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to