I was trying something a bit crazy today. I wanted to add a RowTest to a type fixture.  It didn’t work.

 

I was thinking that in theory, it could work if the first parameter to the test was filled in by the type factory and the rest were filled in by the row test. For example:

 

[TypeFixture(typeof(ISomeInterface))]

[ProviderFactory(typeof(SomeInterfaceFactory), typeof(ISomeInterface))]

public class EmailProviderInstantiationTests

{

       [RowTest]

       [Row(0, "string")]

       public void CanInstantiateAndInitializeEmailProvider(ISomeInterface instance, int expectedCount, string expectedMessage)

       {

              //...

       }

}

 

Notice that the method takes three parameters.  One for the factory provided instance, and the other two for the row.

 

Is this something easy or hard to implement?


Phil


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

Reply via email to