Example #1
0
        public void has_explicit_test()
        {
            theSettings.HasExplicit <FakeSettings>().ShouldBeFalse();

            theSettings.Replace(new FakeSettings());

            theSettings.HasExplicit <FakeSettings>().ShouldBeTrue();
        }
Example #2
0
        public void has_explicit_is_false_if_the_parent_has_it_but_the_child_does_not()
        {
            theSettings.HasExplicit <FakeSettings>().ShouldBeFalse();

            theParent.Replace(new FakeSettings());

            theSettings.HasExplicit <FakeSettings>().ShouldBeFalse();
        }
        public void pull_defaults_from_parent_if_the_settings_is_marked_as_ApplicationLevel()
        {
            theParent.HasExplicit <AppSettings>().ShouldBeFalse();

            // should force the parent to build it now
            theSettings.Get <AppSettings>().ShouldBeTheSameAs(theParent.Get <AppSettings>());
        }