C# Class System.Xml.Tests.ExceptionVerifier

显示文件 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
ConstructExpectedMessage ( object IdsAndParams ) : string
ExceptionVerifier ( string assemblyName, ExceptionVerificationFlags flags, ITestOutputHelper output ) : System.Linq
ExceptionVerifier ( string assemblyName, ITestOutputHelper output ) : System.Linq
IsExceptionOk ( Exception e, object IdsAndParams ) : void
IsExceptionOk ( Exception e, string expectedResId ) : void
IsExceptionOk ( Exception e, string expectedResId, string paramValues ) : void
IsExceptionOk ( Exception e, string expectedResId, string paramValues, LineInfo lineInfo ) : void
ReturnAllMatchingResIds ( string message ) : string[]

Private Methods

Method Description
CheckNull ( Exception e ) : void
CompareMessages ( ) : void
ExceptionInfoOutput ( ) : void
GetRuntimeInstallDir ( ) : string
MakeEscapes ( string str ) : string

Method Details

ConstructExpectedMessage() public method

public ConstructExpectedMessage ( object IdsAndParams ) : string
IdsAndParams object
return string

ExceptionVerifier() public method

public ExceptionVerifier ( string assemblyName, ExceptionVerificationFlags flags, ITestOutputHelper output ) : System.Linq
assemblyName string
flags ExceptionVerificationFlags
output ITestOutputHelper
return System.Linq

ExceptionVerifier() public method

public ExceptionVerifier ( string assemblyName, ITestOutputHelper output ) : System.Linq
assemblyName string
output ITestOutputHelper
return System.Linq

IsExceptionOk() public method

public IsExceptionOk ( Exception e, object IdsAndParams ) : void
e System.Exception
IdsAndParams object
return void

IsExceptionOk() public method

public IsExceptionOk ( Exception e, string expectedResId ) : void
e System.Exception
expectedResId string
return void

IsExceptionOk() public method

public IsExceptionOk ( Exception e, string expectedResId, string paramValues ) : void
e System.Exception
expectedResId string
paramValues string
return void

IsExceptionOk() public method

public IsExceptionOk ( Exception e, string expectedResId, string paramValues, LineInfo lineInfo ) : void
e System.Exception
expectedResId string
paramValues string
lineInfo LineInfo
return void

ReturnAllMatchingResIds() public method

public ReturnAllMatchingResIds ( string message ) : string[]
message string
return string[]