public void CreatesAndReturnComponentCorrectly() { var interpreter = new GoToInterpreter(); var result = interpreter.Interpret("<-> test this thing", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); var gtar = Assert.IsType <GoToAndReturn>(result.Component); Assert.Equal("test this thing", gtar.SceneName); }
public void CreatesComponentCorrectly() { var interpreter = new GoToInterpreter(); var result = interpreter.Interpret("-> test", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())); var instruction = Assert.IsType <GoTo>(result.Component); Assert.Equal("test", instruction.SceneName); }