public void TestAbsMoreBase3()
 {
     PathAbsolute2Relative task = new PathAbsolute2Relative();
     task.AbsPath = @"d:\1\2\ports.list";
     task.BaseDir = @"c:\1";
     task.ExecuteTask();
     Assert.AreEqual(@"..\..\d:\1\2\ports.list", task.Result);
 }
 public void TestAbsSameBase2()
 {
     PathAbsolute2Relative task = new PathAbsolute2Relative();
     task.AbsPath = @"d:\ports.list";
     task.BaseDir = @"d:\";
     task.ExecuteTask();
     Assert.AreEqual(@"ports.list", task.Result);
 }
 public void Example1()
 {
     PathAbsolute2Relative task = new PathAbsolute2Relative();
     task.AbsPath = @"D:\sites\NumSite\Sources\Core\bin\Debug\AppConfiguration.dll";
     task.BaseDir = @"D:\sites\NumSite\Sources\Projects\Portal\Code\Portal.Business";
     task.ExecuteTask();
     Assert.AreEqual(@"..\..\..\..\Core\bin\Debug\AppConfiguration.dll", task.Result);
 }