Ejemplo n.º 1
0
        public void AssertByte(int b)
        {
            int x = GetByte();

            if (x != b)
            {
                throw new IOException("Assertion failed, next byte value is "
                                      + SupportClass.ToHexString(x) + " instead of asserted "
                                      + SupportClass.ToHexString(b));
            }
        }