Exemple #1
0
        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()
                );
        }
Exemple #2
0
        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()
                );
        }