There is no need of a specialized assertion for that.
*Assert.Contains<T>(IEnumerable<T>
sequence, T expectedValue)* will work fine against any type that implements
an equality mechanism (and System.String does)

var array = new[] { "abc", "def", "ghi" };
Assert.Contains(array, "abc");

Regards,
Yann.


2011/3/10 tk <[email protected]>

> Hi
>
> Do we have an assert method with will assert if a string exists is a
> list of string some thing like
>
> Assert.ContainsInList ("MyString",ListofString)
>
> thanks
>
> --
> 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.
>
>

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