Exemplo n.º 1
0
        public void TestCombineArrayOnePath()
        {
            var strings = new[] {
                longPathDirectory
            };

            Assert.AreEqual(longPathDirectory, Path.Combine(strings));
        }
Exemplo n.º 2
0
        public void TestCombineArrayTwoPaths()
        {
            var strings = new[] {
                longPathDirectory, "filename.ext"
            };

            Assert.AreEqual(longPathDirectory.Combine("filename.ext"), Path.Combine(strings));
        }
Exemplo n.º 3
0
 public void TestCombineWithNull() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null, null));
Exemplo n.º 4
0
 public void TestCombineThreePathsThreeNulls() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null, null, null));
Exemplo n.º 5
0
 public void TestCombineArrayNullPath() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null));