Exemplo n.º 1
0
        public void ConvertUrlToPath()
        {
            string baseUrl   = "http://sourcecontrol/svn/Gis/Development/";
            string workspace = @"C:\Users\tkoehler\Desktop\workspace";
            string expected  = Path.Combine(workspace, "this\\is\\a\\test\\test.build");

            string actual = PathConverter.ConvertUrlToPath(baseUrl + "this/is/a/test/test.build", baseUrl, workspace);

            Assert.AreEqual(expected, actual);
        }