C# Class NUnit.Framework.Internal.TestNameGenerator.NameFragment

Show file Open project: nunit/nunit

Public Methods

Method Description
GetText ( MethodInfo method, object args ) : string
GetText ( NUnit.Framework.Internal.TestMethod testMethod, object args ) : string

Protected Methods

Method Description
AppendGenericTypeNames ( StringBuilder sb, MethodInfo method ) : void
GetDisplayString ( object arg, int stringMax ) : string

Private Methods

Method Description
EscapeCharInString ( char c ) : string
EscapeControlChar ( char c ) : string
EscapeSingleChar ( char c ) : string

Method Details

AppendGenericTypeNames() protected static method

protected static AppendGenericTypeNames ( StringBuilder sb, MethodInfo method ) : void
sb StringBuilder
method System.Reflection.MethodInfo
return void

GetDisplayString() protected static method

protected static GetDisplayString ( object arg, int stringMax ) : string
arg object
stringMax int
return string

GetText() public abstract method

public abstract GetText ( MethodInfo method, object args ) : string
method System.Reflection.MethodInfo
args object
return string

GetText() public method

public GetText ( NUnit.Framework.Internal.TestMethod testMethod, object args ) : string
testMethod NUnit.Framework.Internal.TestMethod
args object
return string