示例#1
0
        public void UnflagCorrectlyIdentifiesText()
        {
            var interpreter = new FlagInterpreter();
            var context     = new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions());

            context.Components.Push(new SceneInstructions());
            Assert.True(interpreter.CanInterpret("unflag test", context));
        }
示例#2
0
        public void UnflagCreatesComponentCorrectly()
        {
            var interpreter = new FlagInterpreter();
            var result      = interpreter.Interpret("unflag test",
                                                    new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()));
            var instruction = Assert.IsType <Unflag>(result.Component);

            Assert.Equal("test", instruction.Variable);
        }
示例#3
0
        public void UnflagCorrectlyIdentifiesFalUnflagext()
        {
            var interpreter = new FlagInterpreter();

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