public void AnyTo(ConfigHierarchyLevel level)
                {
                    var range = ConfigHierarchyLevelRange.AnyTo(level);

                    Assert.That(range.IncludesAnything, Is.True);
                    Assert.That(range.HasTo, Is.True);
                    Assert.That(range.To, Is.EqualTo(level));
                    Assert.That(range.HasFrom, Is.False);
                }
 public void When_Negative(ConfigHierarchyLevel to, ConfigHierarchyLevel test)
 {
     Assert.That(ConfigHierarchyLevelRange.AnyTo(to).Includes(test), Is.False);
 }
 public void AndLower(ConfigHierarchyLevel level)
 {
     Assert.That(level.AndLower(), Is.EqualTo(ConfigHierarchyLevelRange.AnyTo(level)));
 }