RE: Nunit Testing & Cassandra

2010-05-25 Thread Sandeep
: Re: Nunit Testing & Cassandra My guess is that it is using object equality to compare. One thing to test would be to create two KeySlices whose contents had the same values, add them to separate lists, and then compare the lists. I think you'll find that they are not 'equivalent

Re: Nunit Testing & Cassandra

2010-05-25 Thread Miguel Verde
o:miguelitov...@gmail.com] Sent: Tuesday, May 25, 2010 9:51 AM To: user@cassandra.apache.org Subject: Re: Nunit Testing & Cassandra It would be helpful to know in what way the test fails, or more information about listOfKeys or the return value of GetListOfRowKeysFromCF at assert time,

RE: Nunit Testing & Cassandra

2010-05-25 Thread Sandeep
Assert.That(listOfKeys, Is.EquivalentTo(TestService.GetListOfRowKeysFromCF("ColumnFamilyName","Keyspace1"))); From: Miguel Verde [mailto:miguelitov...@gmail.com] Sent: Tuesday, May 25, 2010 9:51 AM To: user@cassandra.apache.org Subject: Re: Nunit Testing & Cassandra It would be

Re: Nunit Testing & Cassandra

2010-05-25 Thread Miguel Verde
It would be helpful to know in what way the test fails, or more information about listOfKeys or the return value of GetListOfRowKeysFromCF at assert time, or for that matter what GetListOfRowKeysFromCF is, or the insertion code. Also, does Is.EquivalentTo compare object equality on the items insid

Nunit Testing & Cassandra

2010-05-25 Thread Sandeep
Hi all, I am recent grad and working on Cassandra and Nunit testing. I wrote a unit test in C# which goes like this List listOfKeys = new List(); KeySlice item1 = new KeySlice(); KeySlice item2 = new KeySlice(); KeySlice item3 = new KeySlice();