示例#1
0
        public void GetFilePaths()
        {
            var actual   = TemplateResolver.ResolveFilePath("text\\2");
            var expected = TemplateResolver.GetTemplatesDir() + "\\text\\2.txt";

            Assert.AreEqual(expected, actual);

            actual = TemplateResolver.ResolveFilePath("text\\2.txt");
            Assert.AreEqual(expected, actual);

            actual   = TemplateResolver.ResolveFilePath("1");
            expected = TemplateResolver.GetTemplatesDir() + "\\1.txt";
            Assert.AreEqual(expected, actual);

            actual = TemplateResolver.ResolveFilePath("1.txt");
            Assert.AreEqual(expected, actual);
        }