C# Class System.Web.WebPages.TestUtils.TestFile

Show file Open project: megadotnet/ironframework

Public Methods

Method Description
Create ( string localResourceName ) : TestFile
OpenRead ( ) : Stream
ReadAllBytes ( ) : byte[]
ReadAllText ( ) : string
Save ( string filePath ) : void

Saves the file to the specified path.

TestFile ( string resName, Assembly asm ) : System.IO

Method Details

Create() public static method

public static Create ( string localResourceName ) : TestFile
localResourceName string
return TestFile

OpenRead() public method

public OpenRead ( ) : Stream
return Stream

ReadAllBytes() public method

public ReadAllBytes ( ) : byte[]
return byte[]

ReadAllText() public method

public ReadAllText ( ) : string
return string

Save() public method

Saves the file to the specified path.
public Save ( string filePath ) : void
filePath string
return void

TestFile() public method

public TestFile ( string resName, Assembly asm ) : System.IO
resName string
asm System.Reflection.Assembly
return System.IO