Beispiel #1
0
            public void When_Combine5(string path1, string path2, string path3, string path4, string path5)
            {
                //Take note PathRef.Combine does never initialize the PathRef empty, so we should not expect it to either
                var expectedPathRef = new PathRef(path1);

                expectedPathRef.JoinWith(path2, path3, path4, path5);
                Assert.That(PathRef.Combine(path1, path2, path3, path4, path5), Is.EqualTo(expectedPathRef));
            }
Beispiel #2
0
 public void CombineWithSneakySeparator()
 {
     Assert.That(PathRef.Combine("DirA", "DirB/DirC").WindowsPath, Is.EqualTo(@"DirA\DirB\DirC"));
 }