Bari.Core.Test.Helper.TestFileSystemDirectory.ReadTextFile C# (CSharp) Method

ReadTextFile() public method

Reads an existing text file which lies in this directory subtree
If the file does not exist.
public ReadTextFile ( string relativePath ) : TextReader
relativePath string The relative path to the file from this directory
return TextReader
        public TextReader ReadTextFile(string relativePath)
        {
            if (textContents.ContainsKey(relativePath))
                return new StringReader(textContents[relativePath]);
            else
                throw new ArgumentException();
        }