NuSelfUpdate.Tests.Helpers.MockFileSystem.OpenFile C# (CSharp) Method

OpenFile() public method

public OpenFile ( string path ) : Stream
path string
return Stream
        public virtual Stream OpenFile(string path)
        {
            Func<Stream> factory;
            if (!Paths.TryGetValue(path, out factory))
            {
                throw new FileNotFoundException(path + " not found.");
            }
            return factory();
        }