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

Defines the MockPathBase type.
Inheritance: System.IO.Abstractions.PathBase
Exibir arquivo Open project: asudbury/NinjaCoderForMvvmCross Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

Changes the extension.
public ChangeExtension ( string path, string extension ) : string
path string The path.
extension string The extension.
return string

Combine() public method

Combines the specified path1.
public Combine ( string path1, string path2 ) : string
path1 string The path1.
path2 string The path2.
return string

GetDirectoryName() public method

Gets the name of the directory.
public GetDirectoryName ( string path ) : string
path string The path.
return string

GetExtension() public method

Gets the extension.
public GetExtension ( string path ) : string
path string The path.
return string

GetFileName() public method

Gets the name of the file.
public GetFileName ( string path ) : string
path string The path.
return string

GetFileNameWithoutExtension() public method

Gets the file name without extension.
public GetFileNameWithoutExtension ( string path ) : string
path string The path.
return string

GetFullPath() public method

Gets the full path.
public GetFullPath ( string path ) : string
path string The path.
return string

GetInvalidFileNameChars() public method

Gets the invalid file name chars.
public GetInvalidFileNameChars ( ) : char[]
return char[]

GetInvalidPathChars() public method

Gets the invalid path chars.
public GetInvalidPathChars ( ) : char[]
return char[]

GetPathRoot() public method

Gets the path root.
public GetPathRoot ( string path ) : string
path string The path.
return string

GetRandomFileName() public method

Gets the random name of the file.
public GetRandomFileName ( ) : string
return string

GetTempFileName() public method

Gets the name of the temp file.
public GetTempFileName ( ) : string
return string

GetTempPath() public method

Gets the temp path.
public GetTempPath ( ) : string
return string

HasExtension() public method

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

IsPathRooted() public method

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