AppHarbor.Tests.InMemoryFileSystem.OpenRead C# (CSharp) Method

OpenRead() public method

public OpenRead ( string path ) : Stream
path string
return System.IO.Stream
        public Stream OpenRead(string path)
        {
            byte[] bytes;
            if (!_files.TryGetValue(path, out bytes))
            {
                throw new FileNotFoundException();
            }

            return new MemoryStream(bytes);
        }