public void AllowLoglevelSingle_Should_AddLoglevel()
        {
            var builder = new LogfileConfigurationBuilder <StandardLoglevel>();

            LogfileConfigurationBuilderExtensions.AllowLoglevel <StandardLoglevel>(builder, StandardLoglevel.Warning);
            builder.AllowLoglevels.Count.Should().Be(1);
            builder.AllowLoglevels.Should().Contain(StandardLoglevel.Warning);
        }
 public void AllowLoglevelSingleSelfNull_ShouldThrow_ArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => LogfileConfigurationBuilderExtensions.AllowLoglevel <StandardLoglevel>(null, StandardLoglevel.Warning));
 }