public void CreatesAllComponentCorrectly() { var interpreter = new ClearInterpreter(); var result = interpreter.Interpret("clear *", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); Assert.IsType <ClearAll>(result.Component); }
public void CreatesComponentCorrectly() { var interpreter = new ClearInterpreter(); var result = interpreter.Interpret("clear test", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); var instruction = Assert.IsType <Clear>(result.Component); Assert.Equal("test", instruction.Variable); }