示例#1
0
        public void CreatesComponentWithMultiplePhraseCorrectly()
        {
            var interpreter = new HearInterpreter();
            var result      = interpreter.Interpret("hear test,do the test,testing {",
                                                    new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()));
            var hear = Assert.IsType <Hear>(result.Component);

            Assert.Equal(3, hear.Phrases.Count);
        }
示例#2
0
        public void CreatesComponentWithSinglePhraseCorrectly()
        {
            var interpreter = new HearInterpreter();
            var result      = interpreter.Interpret("hear test {",
                                                    new SkillFlowInterpretationContext(new SkillFlowInterpretationOptions()));
            var hear   = Assert.IsType <Hear>(result.Component);
            var phrase = Assert.Single(hear.Phrases);

            Assert.Equal("test", phrase);
        }