Example #1
0
        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
     }
              )
         );
 }
Example #3
0
 void DoTest(string testLog, ExpectedLog expectedLog)
 {
     ReaderIntegrationTest.Test(CreateFactory(), testLog, expectedLog);
 }
Example #4
0
 IMediaBasedReaderFactory CreateFactory()
 {
     return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(), "W3C", "Extended Log Format"));
 }
Example #5
0
 IMediaBasedReaderFactory CreateFactory()
 {
     return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(), "Microsoft", "WindowsUpdate.log"));
 }
Example #6
0
 IMediaBasedReaderFactory CreateFactory()
 {
     return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(),
                                                                    "Microsoft", "XmlWriterTraceListener"));
 }
 async Task DoTest(string testLog, ExpectedLog expectedLog)
 {
     await ReaderIntegrationTest.Test(CreateFactory(), testLog, expectedLog);
 }
Example #8
0
 IMediaBasedReaderFactory CreateFactory()
 {
     return(ReaderIntegrationTest.CreateFactoryFromAssemblyResource(Assembly.GetExecutingAssembly(),
                                                                    "Oracle", "11g alert log xml"));
 }