public void UseLogEventsFromExceptionData_Should_AddPreprocessor() { // Arrange var builder = new LogfileConfigurationBuilder <StandardLoglevel>(); // Act LogfileConfigurationBuilderExtensions.UseLogEventsFromExceptionData <StandardLoglevel>(builder); // Assert builder.Preprocessors.OfType <ExtractLogEventsFromExceptions <StandardLoglevel> >().Count().Should().Be(1); }
public void UseLogEventsFromExceptionDataSelfNull_ShouldThrow_ArgumentNullException() { Assert.Throws <ArgumentNullException>(() => LogfileConfigurationBuilderExtensions.UseLogEventsFromExceptionData <StandardLoglevel>(null)); }