Пример #1
0
        public void GetNext_ShouldBeReturnTheCharValue(string text, char firstChar)
        {
            var myStream = new MyStream(text);

            Assert.Equal(firstChar, myStream.getNext());
        }
Пример #2
0
        public void GetNext_ShouldBeThrowIndexOutOfRangeException()
        {
            var myStream = new MyStream(string.Empty);

            Assert.Throws <IndexOutOfRangeException>(() => myStream.getNext());
        }