Exemplo n.º 1
0
        public void OneTimeSetUp()
        {
            resourcesDir = TestContext.CurrentContext.TestDirectory + @"\..\..\Resources\fake\";

            ext1WordsReader = A.Fake <IWordsReader>();
            A.CallTo(() => ext1WordsReader.AllowedFileExtension).Returns(new Regex(@"\.ext1$"));

            ext2WordsReader = A.Fake <IWordsReader>();
            A.CallTo(() => ext2WordsReader.AllowedFileExtension).Returns(new Regex(@"\.ext2$"));

            generalWordsReader = new GeneralWordsReader(new[] { ext1WordsReader, ext2WordsReader });
        }
Exemplo n.º 2
0
 public WordsParser(GeneralWordsReader generalWordsReader, IWordsProcessor wordsProcessor, ITextParsingSettings settings)
 {
     this.generalWordsReader = generalWordsReader;
     this.wordsProcessor     = wordsProcessor;
     this.settings           = settings;
 }