public void TestCombineArrayOnePath() { var strings = new[] { longPathDirectory }; Assert.AreEqual(longPathDirectory, Path.Combine(strings)); }
public void TestCombineArrayTwoPaths() { var strings = new[] { longPathDirectory, "filename.ext" }; Assert.AreEqual(longPathDirectory.Combine("filename.ext"), Path.Combine(strings)); }
public void TestCombineWithNull() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null, null));
public void TestCombineThreePathsThreeNulls() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null, null, null));
public void TestCombineArrayNullPath() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null));