C# Class System.IO.FileCleanupTestBase

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

Méthodes publiques

Méthode Description
Dispose ( ) : void

Delete the associated test directory.

Méthodes protégées

Méthode 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 méthode

Delete the associated test directory.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Delete the associated test directory.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FileCleanupTestBase() protected méthode

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

GetTestFileName() protected méthode

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.
Résultat string

GetTestFilePath() protected méthode

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.
Résultat string