コード例 #1
0
 public void Setup()
 {
     helper = new WordsHandlerHelper();
     helper.RawTextExractor.Setup(item => item.GetWord("test")).Returns("T");
     helper.Handler.Setup(item => item.CheckSentiment(It.IsAny <WordOccurrence>())).Returns(new SentimentValue(new TestWordItem(), 2));
     helper.Handler.Setup(item => item.IsStop(It.IsAny <WordOccurrence>())).Returns(true);
     helper.Handler.Setup(item => item.MeasureQuantifier(It.IsAny <WordOccurrence>())).Returns(2);
     instance = WordOccurrence.Create(helper.Handler.Object, helper.RawTextExractor.Object, helper.InquirerManager.Object, "Test", null, POSTags.Instance.NN);
 }
コード例 #2
0
 public void Setup()
 {
     helper = new WordsHandlerHelper();
     helper.RawTextExractor.Setup(item => item.GetWord("test")).Returns("T");
     helper.Handler.Setup(item => item.CheckSentiment(It.IsAny <WordOccurrence>())).Returns(new SentimentValue(new TestWordItem(string.Empty), "Text", 2));
     helper.Handler.Setup(item => item.IsStop(It.IsAny <WordOccurrence>())).Returns(false);
     helper.Handler.Setup(item => item.MeasureQuantifier(It.IsAny <WordOccurrence>())).Returns(2);
     instance = Phrase.Create(helper.Handler.Object, POSTags.Instance.NN);
 }
コード例 #3
0
        public void Setup()
        {
            helper = new WordsHandlerHelper();

            instance = new WordOccurenceFactory(new NullLogger <WordOccurenceFactory>(),
                                                helper.Handler.Object,
                                                helper.RawTextExractor.Object,
                                                helper.InquirerManager.Object);
        }
コード例 #4
0
 public void Setup()
 {
     helper   = new WordsHandlerHelper();
     wordItem = SetupItem();
 }