public void pulls_value_from_config()
        {
            // look at FubuMVC.Tests.dll.config


            AppSettingsProvider.GetValueFor <DiagnosticsSettings>(x => x.TraceLevel)
            .ShouldBe(TraceLevel.None.ToString());

            var collection = new SettingsCollection();

            collection.Get <DiagnosticsSettings>()
            .TraceLevel.ShouldBe(TraceLevel.None);
        }
Ejemplo n.º 2
0
 public void get_value_for()
 {
     AppSettingsProvider.GetValueFor <AppSettings>(x => x.Flag1).ShouldEqual("f1");
 }