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

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

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