Hi in my case i have a
System.Collections.Specialized.StringCollection i would like to a string is this collection. How would i go about it Thanks TK On Mar 10, 11:56 am, Yann Trevin <[email protected]> wrote: > 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.
