public static AllToken ShouldBeAllToken(this QueryToken token, string expectedParameterName)
        {
            Assert.NotNull(token);
            AllToken allToken = Assert.IsType <AllToken>(token);

            Assert.Equal(QueryTokenKind.Any, allToken.Kind);
            Assert.Equal(expectedParameterName, allToken.Parameter);
            return(allToken);
        }
Exemple #2
0
 /// <summary>
 /// Visit an AllToken
 /// </summary>
 /// <param name="tokenIn">The All token to visit</param>
 /// <returns>An AllNode bound to this token</returns>
 public virtual T Visit(AllToken tokenIn)
 {
     throw new NotImplementedException();
 }
 public Expression Visit(AllToken tokenIn)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 protected virtual void VisitAllToken(AllToken token)
 {
     State.Write(Symbols.ALL);
     VisitToken(token.Token);
 }
 protected override void VisitAllToken(AllToken token)
 {
     throw new NotImplementedException();
 }
 public bool Visit(AllToken tokenIn)
 {
     throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, "QueryToken of type '{0}' is not supported.", tokenIn.Kind));
 }