C# Class NinjaCoder.MvvmCross.Tests.Mocks.MockPathBase

Defines the MockPathBase type.
Inheritance: System.IO.Abstractions.PathBase
Afficher le fichier Open project: asudbury/NinjaCoderForMvvmCross Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
ChangeExtension ( string path, string extension ) : string

Changes the extension.

Combine ( string path1, string path2 ) : string

Combines the specified path1.

GetDirectoryName ( string path ) : string

Gets the name of the directory.

GetExtension ( string path ) : string

Gets the extension.

GetFileName ( string path ) : string

Gets the name of the file.

GetFileNameWithoutExtension ( string path ) : string

Gets the file name without extension.

GetFullPath ( string path ) : string

Gets the full path.

GetInvalidFileNameChars ( ) : char[]

Gets the invalid file name chars.

GetInvalidPathChars ( ) : char[]

Gets the invalid path chars.

GetPathRoot ( string path ) : string

Gets the path root.

GetRandomFileName ( ) : string

Gets the random name of the file.

GetTempFileName ( ) : string

Gets the name of the temp file.

GetTempPath ( ) : string

Gets the temp path.

HasExtension ( string path ) : bool

Determines whether the specified path has extension.

IsPathRooted ( string path ) : bool

Determines whether [is path rooted] [the specified path].

Method Details

ChangeExtension() public méthode

Changes the extension.
public ChangeExtension ( string path, string extension ) : string
path string The path.
extension string The extension.
Résultat string

Combine() public méthode

Combines the specified path1.
public Combine ( string path1, string path2 ) : string
path1 string The path1.
path2 string The path2.
Résultat string

GetDirectoryName() public méthode

Gets the name of the directory.
public GetDirectoryName ( string path ) : string
path string The path.
Résultat string

GetExtension() public méthode

Gets the extension.
public GetExtension ( string path ) : string
path string The path.
Résultat string

GetFileName() public méthode

Gets the name of the file.
public GetFileName ( string path ) : string
path string The path.
Résultat string

GetFileNameWithoutExtension() public méthode

Gets the file name without extension.
public GetFileNameWithoutExtension ( string path ) : string
path string The path.
Résultat string

GetFullPath() public méthode

Gets the full path.
public GetFullPath ( string path ) : string
path string The path.
Résultat string

GetInvalidFileNameChars() public méthode

Gets the invalid file name chars.
public GetInvalidFileNameChars ( ) : char[]
Résultat char[]

GetInvalidPathChars() public méthode

Gets the invalid path chars.
public GetInvalidPathChars ( ) : char[]
Résultat char[]

GetPathRoot() public méthode

Gets the path root.
public GetPathRoot ( string path ) : string
path string The path.
Résultat string

GetRandomFileName() public méthode

Gets the random name of the file.
public GetRandomFileName ( ) : string
Résultat string

GetTempFileName() public méthode

Gets the name of the temp file.
public GetTempFileName ( ) : string
Résultat string

GetTempPath() public méthode

Gets the temp path.
public GetTempPath ( ) : string
Résultat string

HasExtension() public méthode

Determines whether the specified path has extension.
public HasExtension ( string path ) : bool
path string The path.
Résultat bool

IsPathRooted() public méthode

Determines whether [is path rooted] [the specified path].
public IsPathRooted ( string path ) : bool
path string The path.
Résultat bool