public void PreservesCase() { var mem = new CachedXmlContents(new RamContents()); mem.Xml(@"BIG\subdir/file", () => new XDocument(new XElement("root", new XElement("years", new XText("1980's"))))); Assert.Equal( "BIG/subdir/file", new FirstOf <string>(mem.Knowledge()).Value() ); }
public void NormalizesSlashes() { var mem = new CachedXmlContents(new RamContents()); mem.Xml(@"childhood\subdir/file", () => new XDocument(new XElement("root", new XElement("years", new XText("1980's"))))); Assert.Equal( @"childhood/subdir/file", new FirstOf <string>(mem.Knowledge()).Value() ); }