public void PathWithInvalidColons_ThrowsNotSupportedException() { var paths = IOInputs.GetPathsWithInvalidColons(); Assert.All(paths, (path) => { Assert.Throws <NotSupportedException>(() => Create(path)); }); }
public void WindowsPathWithIllegalColons() { FileInfo testFile = new FileInfo(GetTestFilePath()); testFile.Create().Dispose(); Assert.All(IOInputs.GetPathsWithInvalidColons(), (invalid) => { Assert.Throws <NotSupportedException>(() => Move(testFile.FullName, invalid)); }); }