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)); }
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); }
public void CorrectlyIdentifiesFalseText() { var interpreter = new SlotAssignmentInterpreter(); Assert.False(interpreter.CanInterpret("slot bottles to AMAZON.Number", new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()))); }