public void append_host_respects_setting_order() { var host1 = new HostManifest("h1"); host1.RegisterSettings(data4); var host2 = new HostManifest("h2"); host2.RegisterSettings(data5); host1.Append(host2); host1.CreateDiagnosticReport().First(x => x.Key == "OneDirective.Age").Value.ShouldEqual("7"); }
private IEnumerable<HtmlTag> writeHostSettings(string provRoot, HostManifest host) { yield return new HtmlTag("h4").Text(host.Name); var settingDataSources = host.CreateDiagnosticReport(); yield return writeSettings(provRoot, settingDataSources); }
public void respects_ordering_for_diagnostics_report() { var host1 = new HostManifest("h1"); host1.RegisterSettings(data4); //age 7 host1.RegisterSettings(data5); //age 8 var dia = host1.CreateDiagnosticReport(); dia.Single().Value.ShouldEqual("7"); var host2 = new HostManifest("h1"); host2.RegisterSettings(data5); //age 8 host2.RegisterSettings(data4); //age 7 var dia2 = host2.CreateDiagnosticReport(); dia2.Single().Value.ShouldEqual("8"); }