public void matches_key()
        {
            var context = new VariableExpansionContext(new InMemoryServiceLocator(), "foo", null);

            context.Matches("foo").ShouldBeTrue();
            context.Matches("FOO").ShouldBeTrue();


            context.Matches("bar").ShouldBeFalse();
        }
 public object Expand(VariableExpansionContext context)
 {
     throw new System.NotImplementedException();
 }
 public bool Matches(VariableExpansionContext context)
 {
     return(context.Matches(Key));
 }
Exemple #4
0
 public abstract object Expand(VariableExpansionContext context);
 public IMappingVariable Find(VariableExpansionContext context)
 {
     return(Variable);
 }
 public object Expand(VariableExpansionContext context)
 {
     return(Value);
 }
 public bool Matches(VariableExpansionContext context)
 {
     throw new System.NotImplementedException();
 }