public void GetToken_WithPatternMatchingStart_ReturnsStart() { var input = "aaabbb"; var patterns = new[] { new PatternInfo("a+", "Pattern"), }; var expectedToken = new { Name = "Pattern", Value = "aaa" }; var parser = new PatternParser(patterns, input); var token = parser.GetToken(); token.Should().BeEquivalentTo(expectedToken); }