Пример #1
0
        public void TestCombineArrayOnePath()
        {
            var strings = new[] {
                longPathDirectory
            };

            Assert.AreEqual(longPathDirectory, Path.Combine(strings));
        }
Пример #2
0
        public void TestCombineArrayTwoPaths()
        {
            var strings = new[] {
                longPathDirectory, "filename.ext"
            };

            Assert.AreEqual(longPathDirectory.Combine("filename.ext"), Path.Combine(strings));
        }
Пример #3
0
 public void TestCombineWithNull() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null, null));
Пример #4
0
 public void TestCombineThreePathsThreeNulls() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null, null, null));
Пример #5
0
 public void TestCombineArrayNullPath() => Assert.Throws <ArgumentNullException>(() => Path.Combine(null));