public void FreedBufferIsEmpty() { using (var buffer = new NativeBuffer(5)) { buffer.ByteCapacity.Should().Be(5); buffer.Free(); buffer.ByteCapacity.Should().Be(0); buffer.DangerousGetHandle().Should().Be(IntPtr.Zero); } }