Re: Checking two Lists are equal or not??

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
Assert.That( expectedLists, Is.EqualTo( typeLists ) );
 
RTM :-)
 
Charlie


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Chakkaradeep
C C
Sent: Wednesday, January 09, 2008 12:18 AM
To: [email protected]
Subject: [Nunit-users] Checking two Lists are equal or not??


Hi All,

I have two Lists

List<Type> expectedLists=new List<Type>();
.... 
....

List<Type> typeLists= MyObject.MyFunction();

I tried,

Assert.That(expectedLists,Is.EquivalentTo(typeLists));

But this doesn't check whether two lists are equal content wise. Any idea
how to do it? Does NUnit has this option? 

Thanks,

-- 
Regards,
C.C.Chakkaradeep,
http://chakkaradeep.wordpress.com
--
"Sometimes it's better not to ask - or to listen - when people tell you
something can't be done. I didnt ask for permission or approval. I just went
ahead and did it."  - from "Direct from Dell"

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.