public void InterpreterUnderstandsVariation() { var interpreter = new MultiLineInterpreter(); var result = interpreter.Interpret("||", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); Assert.IsType <Variation>(result.Component); }
public void InterpreterValidOnNewLine() { var interpreter = new MultiLineInterpreter(); var context = new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()); context.Components.Push(new Text("nocare")); Assert.True(interpreter.CanInterpret("stuff", context)); }