示例#1
0
        public void NoFoulLanguageInDescription()
        {
            Mock<IFileReader> reader = new Mock<IFileReader>();
            reader.Setup(read => read.ReadFoulLanguageFile()).Returns(new HashSet<string>() { "foul", "deoderant" });

            InputFilter filter = new InputFilter(reader.Object);
            dinner = new Dinner(mockRepo.Object, filter);
            dinner.SetDescription("foul deoderant and a couple of eggs");
        }
示例#2
0
 public void CreateFilterNoFileReader()
 {
     InputFilter filter = new InputFilter(null);
 }