private void ParseAndVerifyLog(ExpectedLog expectedLog, string logContent, XmlDocument formatDocument)
        {
            var formatXml = formatDocument.OuterXml;
            var repo      = new TestFormatsRepository(XDocument.Parse(formatXml).Root);
            ILogProviderFactoryRegistry reg            = new LogProviderFactoryRegistry();
            IUserDefinedFormatsManager  formatsManager = new UserDefinedFormatsManager(repo, reg, tempFilesManager);

            RegularGrammar.UserDefinedFormatFactory.Register(formatsManager);
            formatsManager.ReloadFactories();

            ReaderIntegrationTest.Test(reg.Find("Test", "Test") as IMediaBasedReaderFactory, logContent, expectedLog, Encoding.UTF8);
        }
Ejemplo n.º 2
0
 void DoTest(string testLog, ExpectedLog expectedLog)
 {
     ReaderIntegrationTest.Test(CreateReaderFactory(), testLog, expectedLog);
 }