예제 #1
0
        public void TooManyPossibleLocationsPromptsForConfirmation()
        {
            var convo = new MessageManager(ManyResultsGeomock().Object).GetConversation(MyNumber);
            convo.Add("It's all kicking off in Hyde Park!");

            var nextMessage = convo.GetNext();
            Assert.AreEqual("Did you mean Hyde Park, London or Hyde Park, Leeds?", nextMessage);
        }
예제 #2
0
        public void NoGeodataInFirstMessagePromptsForMoreInfo()
        {
            var convo = new MessageManager(NoResultsGeomock().Object).GetConversation(MyNumber);
            convo.Add("Hey there");

            var nextMessage = convo.GetNext();
            Assert.AreEqual("Could you tell me where that's happening?", nextMessage);
        }