예제 #1
0
        public void FHLBApp()
        {
            //create local share
            var path = new DotNetPath();
            var x    = path.ConvertUncShareToLocalPath(new DeploymentServer("sellersd"), @"~\FHLBWinSvc\Bill");

            Assert.AreEqual("D:\\Development\\cue_dep\\Shares\\FHLBWinSvc\\Bill", x);
            //remove local share
        }
예제 #2
0
        public void when_converting_a_share_to_a_local_path_it_should_work_when_the_share_is_prepended_with_a_tilda_aka_site_root()
        {
            var server = new DeploymentServer("localhost");

            Assert.AreEqual(@"C:\temp", _path.ConvertUncShareToLocalPath(server, @"~\c$\temp"));
        }