unit test fails Bug in Put

Jun 18, 2010 at 6:39 PM
[TestMethod] public void WrapAroundBuffer() { var data = GenerateRandomData(randomDataLength); var buffer = new CircularBuffer<byte>(data.Length, true); buffer.Put(GenerateRandomData(randomDataLength / 3)); foreach (var b in data) buffer.Put(b); buffer.Skip(randomDataLength / 3); CollectionAssert.AreEqual(data, buffer.ToArray()); } Bug in Put method
Coordinator
Jul 7, 2012 at 3:06 AM

You can't just change unit tests arbitrarily, as it would seem here, and then expect it to succeed! Please explain why you think this is an issue.