예제 #1
0
 public void JonPath_Simple(string parent, string child, string expected)
 {
     AssertAll.Of(
         () => Assert.That(BPath.JoinPath(parent, child), Is.EqualTo(expected)),
         () => Assert.That(BPath.JoinPath(new[] { parent, child }), Is.EqualTo(expected))
         );
 }
예제 #2
0
 public void JoinPath(string expectedPath, params string[] parts)
 {
     Console.WriteLine(@"\n: " + string.IsNullOrWhiteSpace("\n"));
     Console.WriteLine(@"\t: " + string.IsNullOrWhiteSpace("\t"));
     Assert.That(BPath.JoinPath(parts), Is.EqualTo(expectedPath));
 }