示例#1
0
        public void ShowReturnsVisual()
        {
            var interpreter = new ScenePropertyInterpreter();
            var result      = interpreter.Interpret("*show", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()));

            Assert.IsType <Visual>(result.Component);
        }
示例#2
0
        public void CreatesComponentCorrectly()
        {
            var interpreter = new ScenePropertyInterpreter();
            var result      = interpreter.Interpret("*then",
                                                    new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()));
            var list = Assert.IsType <SceneInstructions>(result.Component);

            Assert.Empty(list.Instructions);
        }
示例#3
0
        public void CorrectlyIdentifiesFalseText()
        {
            var interpreter = new ScenePropertyInterpreter();

            Assert.False(interpreter.CanInterpret("*nothen", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())));
        }
示例#4
0
        public void IdentifiesShow()
        {
            var interpreter = new ScenePropertyInterpreter();

            Assert.True(interpreter.CanInterpret("*say", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())));
        }