Apache.NMS.Test.EndianBinaryWriterTest.testWriteString32_1byteAnd2byteEmbeddedNULLs C# (CSharp) Method

testWriteString32_1byteAnd2byteEmbeddedNULLs() private method

private testWriteString32_1byteAnd2byteEmbeddedNULLs ( ) : void
return void
        public void testWriteString32_1byteAnd2byteEmbeddedNULLs()
        {
            // Test data with 1-byte and 2-byte encoding with embedded NULL's.
            char[] input = { '\u0000', '\u0004', '\u00C2', '\u00A9', '\u00C3', '\u0000', '\u00A6' };
            byte[] expect = { 0xC0, 0x80, 0x04, 0xC3, 0x82, 0xC2, 0xA9, 0xC3, 0x83, 0xC0, 0x80, 0xC2, 0xA6 };

            writeString32TestHelper(input, expect);
        }