C# Class ApprovalUtilities.Utilities.PathUtilities

Exibir arquivo Open project: approvals/ApprovalTests.Net

Public Methods

Method Description
GetAdjacentFile ( string relativePath ) : string
GetDirectoryForCaller ( ) : string
GetDirectoryForCaller ( int callerStackDepth ) : string
GetDirectoryForStackFrame ( StackFrame stackFrame ) : string
LocateFileFromEnviormentPath ( string toFind ) : IEnumerable
ScrubPath ( this text, string path ) : string

Private Methods

Method Description
FindProgramOnPath ( string programName ) : IEnumerable

Method Details

GetAdjacentFile() public static method

public static GetAdjacentFile ( string relativePath ) : string
relativePath string
return string

GetDirectoryForCaller() public static method

public static GetDirectoryForCaller ( ) : string
return string

GetDirectoryForCaller() public static method

public static GetDirectoryForCaller ( int callerStackDepth ) : string
callerStackDepth int
return string

GetDirectoryForStackFrame() public static method

public static GetDirectoryForStackFrame ( StackFrame stackFrame ) : string
stackFrame System.Diagnostics.StackFrame
return string

LocateFileFromEnviormentPath() public static method

public static LocateFileFromEnviormentPath ( string toFind ) : IEnumerable
toFind string
return IEnumerable

ScrubPath() public static method

public static ScrubPath ( this text, string path ) : string
text this
path string
return string