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

ReadAllText() public method

public ReadAllText ( string path ) : string
path string
return string
        public string ReadAllText(string path)
        {
            return OpenFile(path).ReadToEnd();
        }

Usage Example

 protected void VerifyFile(MockFileSystem fileSystem, string file, Version version)
 {
     fileSystem.ReadAllText(file).ShouldBe(MockFileContent(Path.GetFileName(file), version));
 }