public TransformForPOS(Config config, IDetermPOS determPos) { isNeedPOS = new Dictionary <string, bool> { { "N", config.Noun }, { "V", config.Verb }, { "J", config.Adj } }; this.determPos = determPos; }
public void SetUp() { config = new Config(null, Size.Empty, Point.Empty, null, 100, false, false, true); var mockPos = new Mock <IDetermPOS>(); var goodWord = new[] { "grow", "die", "born" }; var boringWord = new[] { "a", "the", "and" }; foreach (var word in goodWord) { mockPos.Setup(pt => pt.GetPartOfSpeech(word)).Returns("V"); } foreach (var word in boringWord) { mockPos.Setup(pt => pt.GetPartOfSpeech(word)).Returns("P"); } determPos = mockPos.Object; transformForPos = new TransformForPOS(config, determPos); }