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

Reply via email to