public void expands_the_variable_from_the_context()
        {
            var variable = new StubVariable {
                Value = "bar"
            };

            theRegistry.Variable = variable;

            var data   = new ModelData();
            var values = new Dictionary <string, object>
            {
                { "foo", "barbarbar" }
            };
            var context = new VariableExpanderContext(data, values);

            theExpander.PushContext(context);

            theExpander.Expand("${foo}").ShouldEqual("barbarbar");
        }
コード例 #2
0
 public void SetUp()
 {
     theData    = new ModelData();
     theValues  = new Dictionary <string, object>();
     theContext = new VariableExpanderContext(theData, theValues);
 }
コード例 #3
0
 public void PushContext(VariableExpanderContext context)
 {
 }