I could at the moment. But I thought, as it is an interface I am
testing, that I may have a second implementation soon and so it would be
easier to just add one more line to the factory than to change
everything into a new test. Perhaps I'll try the same thing with two
exactly identical rows in my factory, just to see, whether it works like
that. Strange anyway....
Thanks for your help!
Claudia
Gigi schrieb:
>
> On 25 Mag, 13:01, querpfeife <[EMAIL PROTECTED]> wrote:
>
>> I am so sorry. Here it is:
>>
>> /// <summary>
>> /// Factory, die ICompasIdentities ohne Username erzeugt
>> /// </summary>
>> /// <returns>ICompasIdentity</returns>
>> [Factory(typeof(ICompasIdentity))]
>> public IEnumerable GetIdentityOhneName ()
>> {
>> yield return new CompasIdentity();
>> }
>>
>>
> Ok, it seems to be correct (one line of code.. :))
>
> maybe MbUnit enumerates the factory provided for the parameters,
> nested in the order in which the parameter are, in this case if the
> first factory provides only one value, it will remain always the same
> (the same means, the same instance).
>
> You provide only one value in the GetIdentityOhneName, and the
> parameter used by the test metod are two, can't you use a RowTest?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---