public void ResetShouldSetPositionAsMinusOne() { var s = new SymbolsEnumerator("Elemar"); s.MoveNext(); s.Position.Should().Be(0); s.Reset(); s.Position.Should().Be(-1); }
public void CanRecognizeIdentifier(string input, bool result) { var symbols = new SymbolsEnumerator(input); symbols.MoveNext(); symbols.CurrentPosCouldBeAnIdentifier().Should().Be(result); }
public void CurrentFromIEnumeratorShouldReturnSameAsRegularCurrent() { var s = new SymbolsEnumerator("Elemar"); s.MoveNext(); s.Current.Should().Be(((IEnumerator)s).Current); }