Пример #1
0
        private string GetTestFilePath(string filename)
        {
            string rootDir = Path.Combine(VcsTestPathHelper.FindVcsRootPath(), "temp");

            string folder = Path.Combine(rootDir, TestContext.TestName);

            Directory.CreateDirectory(folder);
            string file = Path.Combine(folder, filename);

            return(file);
        }
Пример #2
0
        public void XmlTransform_ReplaceAttribute()
        {
            string src = Path.Combine(VcsTestPathHelper.FindVcsRootPath(), "src", "Arbor.Xdt.Tests", "Resources", "Example", "Web.Config");

            string transform = Path.Combine(VcsTestPathHelper.FindVcsRootPath(), "src", "Arbor.Xdt.Tests", "Resources", "Example", "Web.Release.Config");

            string destination = Path.Combine(VcsTestPathHelper.FindVcsRootPath(), "src", "Arbor.Xdt.Tests", "Resources", "Example", "Web.Result.Config");

            Transform_TestRunner_ExpectSuccess(File.ReadAllText(src),
                                               File.ReadAllText(transform),
                                               File.ReadAllText(destination),
                                               "");
        }