Example #1
0
        public void ExtractCodesTest(string content, int count)
        {
            var rpdExtractorConfig = new RpdExtractorConfig(new List <string>(), new List <string>(), REGEX);
            var extractor          = new RpdContentExtractor(rpdExtractorConfig);

            Assert.AreEqual(count, extractor.Extract(content).Codes.Count);
        }
Example #2
0
        public void ExtractMinusWordsTest(string content, string minus, DocumentType type)
        {
            var rpdExtractorConfig = new RpdExtractorConfig(new List <string>(), new List <string> {
                minus
            }, REGEX);
            var extractor = new RpdContentExtractor(rpdExtractorConfig);

            Assert.AreEqual(type, extractor.Extract(content).DocumentType);
        }