ReadByte() public method

See System.IO.Stream.ReadByte
public ReadByte ( ) : int
return int
Beispiel #1
0
        public void ZeroLengthInputStream()
        {
            var lis = new LzwInputStream(new MemoryStream());
            bool exception = false;
            try {
                lis.ReadByte();
            } catch {
                exception = true;
            }

            Assert.IsTrue(exception, "reading from an empty stream should cause an exception");
        }