示例#1
0
        public void ReadNextReturnsNullWhenFileIsCompletelyRead()
        {
            //setup
            using (var sut = new InputStreamReader("Configuration.txt"))
            {
                //execute
                var line = sut.ReadNext();
                while (line != null)
                {
                    line = sut.ReadNext();
                }

                line = sut.ReadNext();

                //assert
                Assert.IsNull(line);
            }
        }