public void DebugOutput()
 {
     var service = Utils.CreateParsersConfigurationService();
     var contentType = new ContentTypeStub(ContentType.DebugOutput);
     var parsers = service.GetParsers(contentType).ToList();
     Assert.AreEqual(2, parsers.Count);
     Assert.AreEqual(1, parsers.Count(p => p.Parser == typeof(DebugExceptionParser) && p.DataProcessor == typeof(DebugExceptionDataProcessor)));
     Assert.AreEqual(1, parsers.Count(p => p.Parser == typeof(DebugTraceMessageParser) && p.DataProcessor == typeof(DebugTraceMessageDataProcessor)));
 }
 public void GeneralOutput()
 {
     var service = Utils.CreateParsersConfigurationService();
     var contentType = new ContentTypeStub(ContentType.Output);
     var parsers = service.GetParsers(contentType).ToList();
     Assert.AreEqual(3, parsers.Count);
     Assert.AreEqual(1, parsers.Count(p => p.Parser == typeof(NpmMessageParser) && p.DataProcessor == typeof(NpmMessageDataProcessor)));
     Assert.AreEqual(1, parsers.Count(p => p.Parser == typeof(NpmResultParser) && p.DataProcessor == typeof(NpmResultDataProcessor)));
     Assert.AreEqual(1, parsers.Count(p => p.Parser == typeof(BowerMessageParser) && p.DataProcessor == typeof(BowerMessageDataProcessor)));
 }
Пример #3
0
 public TextBufferStub(String contentType)
 {
     ContentType = new ContentTypeStub(contentType);
     Properties  = new PropertyCollection();
 }
Пример #4
0
 public TextBufferStub(String contentType)
 {
     ContentType = new ContentTypeStub(contentType);
     Properties = new PropertyCollection();
 }