Esempio n. 1
0
        public void WindowsControWhiteSpace()
        {
            // CreateSubdirectory will throw when passed a path with control whitespace e.g. "\t"
            var components = IOInputs.GetControlWhiteSpace();

            Assert.All(components, (component) =>
            {
                string path = IOServices.RemoveTrailingSlash(GetTestFileName());
                Assert.Throws <ArgumentException>(() => new DirectoryInfo(TestDirectory).CreateSubdirectory(component));
            });
        }