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

readString16Helper() public method

public readString16Helper ( byte input, char expect ) : void
input byte
expect char
return void
        public void readString16Helper(byte[] input, char[] expect)
        {
            MemoryStream stream = new MemoryStream(input);
            EndianBinaryReader reader = new EndianBinaryReader(stream);

            char[] result = reader.ReadString16().ToCharArray();

            for(int i = 0; i < expect.Length; ++i)
            {
                Assert.AreEqual(expect[i], result[i]);
            }
        }