Exemple #1
0
        public void UtfStringMarshalsCorrectly()
        {
            var obj = new Utf16Test
            {
                LargeString = "This is a test"
            };

            Assert.Equal(obj.LargeString, Functions.PassThrough(obj).LargeString);
        }
Exemple #2
0
        public void InplaceUtf16StringMarshalsCorrectly()
        {
            var obj = new Utf16Test
            {
                SmallString = "Test"
            };

            Assert.Equal(obj.SmallString, Functions.PassThrough(obj).SmallString);
        }