Beispiel #1
0
        public void GetNext_ShouldBeReturnTheCharValue(string text, char firstChar)
        {
            var myStream = new MyStream(text);

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

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