public void ConstructorLoglevel_Should_SetProperties() { var range = new LoglevelRange <StandardLoglevel>(StandardLoglevel.Information, StandardLoglevel.Information); range.From.Should().Be(StandardLoglevel.Information); range.To.Should().Be(StandardLoglevel.Information); }
public void ConstructorFromTo_Should_SetProperties() { // "from"/"lower" equals more detailed loglevels, "to"/"higher" equals more critical loglevels var range = new LoglevelRange <StandardLoglevel>(StandardLoglevel.Debug, StandardLoglevel.Error); range.From.Should().Be(StandardLoglevel.Debug); range.To.Should().Be(StandardLoglevel.Error); }
public void CheckIsCoveredForBelowLowerLoglevel_ShouldReturn_False() { var range = new LoglevelRange <StandardLoglevel>(StandardLoglevel.Debug, StandardLoglevel.Error); range.CheckIsCovered(StandardLoglevel.Trace).Should().BeFalse(); }
public void CheckIsCoveredForAboveUpperLoglevel_ShouldReturn_False() { var range = new LoglevelRange <StandardLoglevel>(StandardLoglevel.Debug, StandardLoglevel.Error); range.CheckIsCovered(StandardLoglevel.Critical).Should().BeFalse(); }
public void CheckIsCoveredForIntermediateLoglevel_ShouldReturn_True() { var range = new LoglevelRange <StandardLoglevel>(StandardLoglevel.Debug, StandardLoglevel.Error); range.CheckIsCovered(StandardLoglevel.Warning).Should().BeTrue(); }
public void CheckIsCoveredForUpperLoglevel_ShouldReturn_True() { var range = new LoglevelRange <StandardLoglevel>(StandardLoglevel.Debug, StandardLoglevel.Error); range.CheckIsCovered(StandardLoglevel.Error).Should().BeTrue(); }