another way to write this (without foreach).

            fileMock.Setup(f => f.Exists(It.IsAny<string>()))
                .Returns<string>(path => paths.Contains(path));