public void CorrectlyIdentifiesReturn()
        {
            var interpreter = new GoToInterpreter();
            var context     = new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions());

            context.Components.Push(new SceneInstructions());
            Assert.True(interpreter.CanInterpret("<->", context));
        }
        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);
        }
        public void CorrectlyIdentifiesFalseText()
        {
            var interpreter = new GoToInterpreter();

            Assert.False(interpreter.CanInterpret("=>", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())));
        }