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

            context.Components.Push(new SceneInstructions());
            Assert.True(interpreter.CanInterpret("slot bottles to 'AMAZON.Number'", context));
        }
示例#2
0
        public void CorrectlyIdentifiesFalseText()
        {
            var interpreter = new SlotAssignmentInterpreter();

            Assert.False(interpreter.CanInterpret("slot bottles to AMAZON.Number", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions())));
        }