public void U8StringConverter_ToNative_EmptyString_ReturnsNullByte() { unsafe { byte *actual = (byte *)U8StringConverter.ToNative(string.Empty); AssertCStringEqual(NullString, actual); } }
public void U8StringConverter_ToNative_ComplexString_ReturnsExpectedBytes() { unsafe { byte *actual = (byte *)U8StringConverter.ToNative(ComplexString); AssertCStringEqual(ComplexUtf8, actual); } }
public void U8StringConverter_ToNative_Null_ReturnsNullPointer() { IntPtr actual = U8StringConverter.ToNative(null); Assert.Equal(IntPtr.Zero, actual); }