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

readString32Helper() public method

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

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

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