Re: Is.All.EqualTo?

"Charlie Poole" <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <004601c8800c$3865aed0$6401a8c0@ferrari>
Hi Kelly,
> >  What you probably want to do is lots simpler...
> >   Assert.That( firstMaxBFF, Is.EqualTo( maxBFF ) );
> 
> And that will compare each individual item within the list to 
> the firstMaxBFF... I see, it's not comparing two lists to 
> each other, but comparing the first item to all of the items 
> in the second list.

It's comparing the two lists, which by definition means to
comapare each corresponding item.
 
> >  or even simpler...
> >   Assert.That(  maxBffLoudList[0], Is.EqualTo(  
> maxBffLoudList[i] ) );
> 
> I was trying to get rid of the loop...

No loop there - unless I misunderstood your code.
 
> -Kelly
> 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
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.