public void MultipleSynonymsCanMapToTheSameVerb() { var verbSynonyms = new VerbSynonyms(); Assert.AreEqual(VerbCodes.Take, verbSynonyms.GetVerbForSynonym("take")); Assert.AreEqual(VerbCodes.Take, verbSynonyms.GetVerbForSynonym("get")); }
public void GetReturnsReturnsNoCommandForNonExistingSysnonym() { var verbSynonyms = new VerbSynonyms(); Assert.AreEqual(VerbCodes.NoCommand, verbSynonyms.GetVerbForSynonym("flop")); }
public void AddCreatesSynonymMappingForANoun() { var verbSynonyms = new VerbSynonyms(); Assert.AreEqual(VerbCodes.Take, verbSynonyms.GetVerbForSynonym("get")); }