C# Class System.IO.FileCleanupTestBase

Base class for test classes the use temporary files that need to be cleaned up.
Inheritance: IDisposable
Exibir arquivo Open project: dotnet/corefx

Public Methods

Method Description
Dispose ( ) : void

Delete the associated test directory.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Delete the associated test directory.

FileCleanupTestBase ( ) : System.Runtime.CompilerServices

Initialize the test class base. This creates the associated test directory.

GetTestFileName ( int index = null, [ memberName = null, [ lineNumber ) : string

Gets a test file name that is associated with the call site.

GetTestFilePath ( int index = null, [ memberName = null, [ lineNumber ) : string

Gets a test file full path that is associated with the call site.

Method Details

Dispose() public method

Delete the associated test directory.
public Dispose ( ) : void
return void

Dispose() protected method

Delete the associated test directory.
protected Dispose ( bool disposing ) : void
disposing bool
return void

FileCleanupTestBase() protected method

Initialize the test class base. This creates the associated test directory.
protected FileCleanupTestBase ( ) : System.Runtime.CompilerServices
return System.Runtime.CompilerServices

GetTestFileName() protected method

Gets a test file name that is associated with the call site.
protected GetTestFileName ( int index = null, [ memberName = null, [ lineNumber ) : string
index int An optional index value to use as a suffix on the file name. Typically a loop index.
memberName [ The member name of the function calling this method.
lineNumber [ The line number of the function calling this method.
return string

GetTestFilePath() protected method

Gets a test file full path that is associated with the call site.
protected GetTestFilePath ( int index = null, [ memberName = null, [ lineNumber ) : string
index int An optional index value to use as a suffix on the file name. Typically a loop index.
memberName [ The member name of the function calling this method.
lineNumber [ The line number of the function calling this method.
return string