C# Class System.Xml.Tests.XsltcTestCaseBase

Inheritance: OLEDB.Test.ModuleCore.CTestCase
Mostrar archivo Open project: dotnet/corefx

Public Properties

Property Type Description
szDefaultNS String
szEmpty String
szInvalid String
szLongNS String
szLongString String
szSimple String
szWhiteSpace String[]
szXslNS String

Protected Properties

Property Type Description
_createFromInputFile bool
_isInProc bool

Public Methods

Method Description
Init ( object objParam ) : int
XsltcTestCaseBase ( ITestOutputHelper output ) : Xunit
xsltcExeFound ( ) : bool

Protected Methods

Method Description
CompareOutput ( Stream expectedStream, Stream actualStream, int count ) : void
CompareOutput ( string expected, Stream actualStream ) : void
LoadPersistedTransformAssembly ( string asmName, string typeName, string baselineFile, bool pdb ) : bool
ReplaceCurrentWorkingDirectory ( string commandLine ) : string
ShouldSkip ( object varParams ) : bool
VerifyTest ( String cmdLine, String baselineFile, bool loadFromFile ) : void
VerifyTest ( String cmdLine, String asmName, bool asmCreated, String typeName, String baselineFile, bool loadFromFile ) : void
VerifyTest ( String cmdLine, String asmName, bool asmCreated, String typeName, String pdbName, bool pdbCreated, String baselineFile, bool loadFromFile ) : void
VerifyTest ( String cmdLine, String asmName, bool asmCreated, String typeName, String pdbName, bool pdbCreated, String baselineFile, bool runAssemblyVerification, bool loadFromFile ) : void

Private Methods

Method Description
CreateInputFile ( string commandLine ) : string
GetPath ( string fileName ) : string
SafeDeleteFile ( string fileName ) : void
TryCreatePersistedTransformAssembly ( string commandLine, bool createFromInputFile, bool expectedToSucceed, string targetDirectory ) : string

Currently this method supports only 1 input file. For variations that require more than one input file to test @file functionality, custom-craft and write those input files in the body of the variation method, then pass an appropriate commandline such as @file1 @file2 @file3, along with createFromInputFile = false.

Method Details

CompareOutput() protected static method

protected static CompareOutput ( Stream expectedStream, Stream actualStream, int count ) : void
expectedStream Stream
actualStream Stream
count int
return void

CompareOutput() protected static method

protected static CompareOutput ( string expected, Stream actualStream ) : void
expected string
actualStream Stream
return void

Init() public method

public Init ( object objParam ) : int
objParam object
return int

LoadPersistedTransformAssembly() protected method

protected LoadPersistedTransformAssembly ( string asmName, string typeName, string baselineFile, bool pdb ) : bool
asmName string
typeName string
baselineFile string
pdb bool
return bool

ReplaceCurrentWorkingDirectory() protected method

protected ReplaceCurrentWorkingDirectory ( string commandLine ) : string
commandLine string
return string

ShouldSkip() protected method

protected ShouldSkip ( object varParams ) : bool
varParams object
return bool

VerifyTest() protected method

protected VerifyTest ( String cmdLine, String baselineFile, bool loadFromFile ) : void
cmdLine String
baselineFile String
loadFromFile bool
return void

VerifyTest() protected method

protected VerifyTest ( String cmdLine, String asmName, bool asmCreated, String typeName, String baselineFile, bool loadFromFile ) : void
cmdLine String
asmName String
asmCreated bool
typeName String
baselineFile String
loadFromFile bool
return void

VerifyTest() protected method

protected VerifyTest ( String cmdLine, String asmName, bool asmCreated, String typeName, String pdbName, bool pdbCreated, String baselineFile, bool loadFromFile ) : void
cmdLine String
asmName String
asmCreated bool
typeName String
pdbName String
pdbCreated bool
baselineFile String
loadFromFile bool
return void

VerifyTest() protected method

protected VerifyTest ( String cmdLine, String asmName, bool asmCreated, String typeName, String pdbName, bool pdbCreated, String baselineFile, bool runAssemblyVerification, bool loadFromFile ) : void
cmdLine String
asmName String
asmCreated bool
typeName String
pdbName String
pdbCreated bool
baselineFile String
runAssemblyVerification bool
loadFromFile bool
return void

XsltcTestCaseBase() public method

public XsltcTestCaseBase ( ITestOutputHelper output ) : Xunit
output ITestOutputHelper
return Xunit

xsltcExeFound() public static method

public static xsltcExeFound ( ) : bool
return bool

Property Details

_createFromInputFile protected_oe property

protected bool _createFromInputFile
return bool

_isInProc protected_oe property

protected bool _isInProc
return bool

szDefaultNS public_oe property

public String szDefaultNS
return String

szEmpty public_oe property

public String szEmpty
return String

szInvalid public_oe property

public String szInvalid
return String

szLongNS public_oe property

public String szLongNS
return String

szLongString public_oe property

public String szLongString
return String

szSimple public_oe property

public String szSimple
return String

szWhiteSpace public_oe property

public String[] szWhiteSpace
return String[]

szXslNS public_oe property

public String szXslNS
return String