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

testReadString32_UTF8Missing2ndByte() private method

private testReadString32_UTF8Missing2ndByte ( ) : void
return void
        public void testReadString32_UTF8Missing2ndByte()
        {
            // Test with bad UTF-8 encoding, missing 2nd byte of two byte value
            byte[] input = { 0x00, 0x00, 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.ReadString32();
        }