void DoTest(string formatDescription, string testLog, params EM[] expectedMessages) { ExpectedLog expectedLog = new ExpectedLog(); expectedLog.Add(0, expectedMessages); ReaderIntegrationTest.Test(CreateFactory(formatDescription), testLog, expectedLog); }
public void RealLogTest() { ReaderIntegrationTest.Test( CreateFactory(), Assembly.GetExecutingAssembly().GetManifestResourceStream( Assembly.GetExecutingAssembly().GetManifestResourceNames().SingleOrDefault(n => n.Contains("XmlWriterTraceListener1.xml"))), new ExpectedLog() .Add(0, new EM("Void Main(System.String[])", "SampleLoggingApp(1956), 1") { Type = MessageFlag.StartFrame }, new EM("----- Sample application started 07/24/2011 12:37:26 ----", "SampleLoggingApp(1956), 1") ) .Add(8, new EM("Void Producer()", "SampleLoggingApp(1956), 6") { Type = MessageFlag.StartFrame } ) .Add(11, new EM("", "SampleLoggingApp(1956), 1") { Type = MessageFlag.EndFrame } ) ); }
void DoTest(string testLog, ExpectedLog expectedLog) { ReaderIntegrationTest.Test(CreateFactory(), testLog, expectedLog); }
IMediaBasedReaderFactory CreateFactory() { return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(), "W3C", "Extended Log Format")); }
IMediaBasedReaderFactory CreateFactory() { return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(), "Microsoft", "WindowsUpdate.log")); }
IMediaBasedReaderFactory CreateFactory() { return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(), "Microsoft", "XmlWriterTraceListener")); }
async Task DoTest(string testLog, ExpectedLog expectedLog) { await ReaderIntegrationTest.Test(CreateFactory(), testLog, expectedLog); }
IMediaBasedReaderFactory CreateFactory() { return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(), "Oracle", "11g alert log xml")); }