public void Should_read_and_write_uints() { var buffer = new byte[1024]; using (var wrapper = new UnsafeBufferWrapper(buffer)) { const uint value = 42u; wrapper.Write(value); Assert.AreEqual(wrapper.Position, sizeof (uint)); wrapper.ResetCursor(); var readValue = wrapper.ReadUInt32(); Assert.AreEqual(value, readValue); } }