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)) ); }
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)); }