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"); }
public void SetUp() { theData = new ModelData(); theValues = new Dictionary <string, object>(); theContext = new VariableExpanderContext(theData, theValues); }
public void PushContext(VariableExpanderContext context) { }