Apache.NMS.Test.EndianBinaryReaderTest.testReadString16_UTF8Missing2ndByte C# (CSharp) Method

testReadString16_UTF8Missing2ndByte() private method

private testReadString16_UTF8Missing2ndByte ( ) : void
return void
        public void testReadString16_UTF8Missing2ndByte()
        {
            // Test with bad UTF-8 encoding, missing 2nd byte of two byte value
            byte[] input = { 0x00, 0x0D, 0xC0, 0x80, 0x04, 0xC3, 0x82, 0xC2, 0xC2, 0xC3, 0x83, 0xC0, 0x80, 0xC2, 0xA6 };

            MemoryStream stream = new MemoryStream(input);
            EndianBinaryReader reader = new EndianBinaryReader(stream);

            reader.ReadString16();
        }