public void WriteAtBytePositionTest() { // write 2 bytes writer.WriteByte(1); writer.WriteByte(2); // .ToArray() length is 2? Assert.That(writer.ToArray().Length, Is.EqualTo(2)); // set position back by one writer.WriteAtBytePosition(2, 8, 1); // Changing the position should not alter the size of the data Assert.That(writer.ToArray().Length, Is.EqualTo(2)); }