public void GetNext_ShouldBeReturnTheCharValue(string text, char firstChar) { var myStream = new MyStream(text); Assert.Equal(firstChar, myStream.getNext()); }
public void GetNext_ShouldBeThrowIndexOutOfRangeException() { var myStream = new MyStream(string.Empty); Assert.Throws <IndexOutOfRangeException>(() => myStream.getNext()); }