public void DoWhileConditionInConstructor() { TestExpressionEvaluator <bool> condition = new TestExpressionEvaluator <bool> { ExpressionResult = false }; TestDoWhile doWhile = new TestDoWhile(condition) { Body = new TestWriteLine("Hello", "Hello"), HintIterationCount = 1 }; TestRuntime.RunAndValidateWorkflow(doWhile); }
public void DecisionWithConditionSetToExpressionActivity() { TestExpressionEvaluator <bool> myExpression = new TestExpressionEvaluator <bool>(true); TestFlowConditional flowConditinoal = new TestFlowConditional { ConditionValueExpression = (TestActivity)myExpression }; TestFlowchart flowchart = new TestFlowchart(); flowchart.AddConditionalLink(new TestWriteLine("Start", "FLowchart started"), flowConditinoal, new TestWriteLine("True Action", "True Action"), new TestWriteLine("False Action", "False Action")); TestRuntime.RunAndValidateWorkflow(flowchart); }