public void InitTestContext() { ruleT1 = new TestRuleT1(); ruleT2 = new TestRuleT2(); ruleTN = new TestRuleTN(); ruleDependent = new OtherRuleT1(); transformation = new MockTransformation(ruleT1, ruleT2, ruleTN, ruleDependent); transformation.Initialize(); context = CreateContext(transformation); trace = context.Trace; c_a = context.CallTransformation(ruleT1, new object[] { "a" }); c_b = context.CallTransformation(ruleT1, new object[] { "b" }); c_ab = context.CallTransformation(ruleT2, new object[] { "a", "b" }); c_bc = context.CallTransformation(ruleT2, new object[] { "b", "c" }); c_abc = context.CallTransformation(ruleTN, new object[] { "a", "b", "c" }); c_bcd = context.CallTransformation(ruleTN, new object[] { "b", "c", "d" }); c_a.InitializeOutput("b"); c_b.InitializeOutput(null); c_ab.InitializeOutput("c"); c_bc.InitializeOutput(null); c_abc.InitializeOutput("d"); c_bcd.InitializeOutput(null); }
public void InitTestContext() { ruleT1 = new TestRuleT1(); ruleDependent = new OtherRuleT1(); transformation = new MockTransformation(ruleT1, ruleDependent); transformation.Initialize(); context = new MockContext(transformation); }
public void InitTestContext() { ruleT1 = new TestRuleT1(); ruleDependent = new OtherRuleT1(); transformation = new MockTransformation(ruleT1, ruleDependent); transformation.Initialize(); context = new MockContext(transformation); dependency = new SingleDependency(); dependency.BaseTransformation = ruleT1; dependency.DependencyTransformation = ruleDependent; dependency.ExecuteBefore = true; c_Test = new MockComputation(new object[] { "a" }, ruleT1, context, "b"); c_Dependent = new MockComputation(new object[] { new Dummy() }, ruleDependent, context, null); context.Computations.Add(c_Test); context.Computations.Add(c_Dependent); }