Example #1
0
 /// <summary>
 /// Checks that the current element text is equal to the expected
 /// </summary>
 /// <returns>The next element.</returns>
 /// <param name="enumerator">The enumerator to use.</param>
 /// <param name="value">The value to use.</param>
 public static ParseToken CheckCurrent(this IEnumerator <ParseToken> enumerator, string value)
 {
     return(enumerator.CheckCurrent(x => x.Text == value, $"Expected \"{value}\": " + "{0}"));
 }