Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public void CreatesComponentCorrectly()
        {
            var interpreter = new SlotAssignmentInterpreter();
            var result      = interpreter.Interpret("slot bottles to 'AMAZON.Number'",
                                                    new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()));
            var instruction = Assert.IsType <SlotAssignment>(result.Component);

            Assert.Equal("bottles", instruction.SlotName);
            Assert.Equal("AMAZON.Number", instruction.SlotType);
        }
Exemplo n.º 3
0
        public void CorrectlyIdentifiesFalseText()
        {
            var interpreter = new SlotAssignmentInterpreter();

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