예제 #1
0
        public void MultipleSynonymsCanMapToTheSameVerb()
        {
            var verbSynonyms = new VerbSynonyms();

            Assert.AreEqual(VerbCodes.Take, verbSynonyms.GetVerbForSynonym("take"));
            Assert.AreEqual(VerbCodes.Take, verbSynonyms.GetVerbForSynonym("get"));
        }
예제 #2
0
        public void GetReturnsReturnsNoCommandForNonExistingSysnonym()
        {
            var verbSynonyms = new VerbSynonyms();

            Assert.AreEqual(VerbCodes.NoCommand, verbSynonyms.GetVerbForSynonym("flop"));
        }
예제 #3
0
        public void AddCreatesSynonymMappingForANoun()
        {
            var verbSynonyms = new VerbSynonyms();

            Assert.AreEqual(VerbCodes.Take, verbSynonyms.GetVerbForSynonym("get"));
        }