public void TestCounterOverflow() { var output = new MemoryStream(); CounterOverflow dataOut = new CounterOverflow(output); dataOut.WriteByte(1); if (dataOut.Length < 0) { fail("Internal counter less than 0."); } }