public void ForwardReplace() { var s = new MultiSettings(); s.Add(GetXmlSettings("ACfg_FA")); s.Add(GetXmlSettings("ACfg")); var cfg = s.Combine<CombineConfig>("ACfg"); Assert.AreEqual("A", cfg.F); }
public void Replace(string expected, params string[] confFiles) { var s = new MultiSettings(); foreach(var name in confFiles) s.Add(GetXmlSettings(name)); var cfg = s.Combine<CombineConfig>("ACfg"); Assert.AreEqual(expected, cfg.F); }