public void CreatesAllComponentCorrectly()
        {
            var interpreter = new ClearInterpreter();
            var result      = interpreter.Interpret("clear *",
                                                    new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()));

            Assert.IsType <ClearAll>(result.Component);
        }
        public void CorrectlyIdentifiesText()
        {
            var interpreter = new ClearInterpreter();
            var context     = new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions());

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

            Assert.False(interpreter.CanInterpret("cleary test", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())));
        }