ReadByte() 공개 메소드

See System.IO.Stream.ReadByte
public ReadByte ( ) : int
리턴 int
예제 #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");
        }