public void BlockLoglevelsFromToInverted_Should_AddLoglevel() { var builder = new LogfileConfigurationBuilder <StandardLoglevel>(); LogfileConfigurationBuilderExtensions.BlockLoglevels <StandardLoglevel>(builder, StandardLoglevel.Warning, StandardLoglevel.Error); builder.BlockLoglevels.Count.Should().Be(2); builder.BlockLoglevels.Should().Contain(StandardLoglevel.Warning); builder.BlockLoglevels.Should().Contain(StandardLoglevel.Error); }
public void BlockLoglevelFromToSelfNull_ShouldThrow_ArgumentNullException() { Assert.Throws <ArgumentNullException>(() => LogfileConfigurationBuilderExtensions.BlockLoglevels <StandardLoglevel>(null, StandardLoglevel.Warning, StandardLoglevel.Error)); }