IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Internal.TestNameGenerator Class Reference

TestNameGenerator is able to create test names according to a coded pattern. More...

+ Collaboration diagram for NUnit.Framework.Internal.TestNameGenerator:

Classes

class  ArgListFragment
 
class  ArgumentFragment
 
class  ClassFullNameFragment
 
class  ClassNameFragment
 
class  FixedTextFragment
 
class  MethodFullNameFragment
 
class  MethodNameFragment
 
class  NameFragment
 
class  NamespaceFragment
 
class  TestIDFragment
 

Public Member Functions

 TestNameGenerator (string pattern)
 Construct a TestNameGenerator More...
 
string GetDisplayName (TestMethod testMethod)
 Get the display name for a TestMethod and it's arguments More...
 
string GetDisplayName (TestMethod testMethod, object[] args)
 Get the display name for a TestMethod and it's arguments More...
 

Private Member Functions

string GetDisplayName (MethodInfo method)
 Get the display name for a MethodInfo More...
 
string GetDisplayName (MethodInfo method, object[] args)
 Get the display name for a method with args More...
 

Private Attributes

List< NameFragment_fragments = new List<NameFragment>()
 

Detailed Description

TestNameGenerator is able to create test names according to a coded pattern.

Constructor & Destructor Documentation

NUnit.Framework.Internal.TestNameGenerator.TestNameGenerator ( string  pattern)
inline

Construct a TestNameGenerator

Parameters
patternThe pattern used by this generator.

Member Function Documentation

string NUnit.Framework.Internal.TestNameGenerator.GetDisplayName ( TestMethod  testMethod,
object[]  args 
)
inline

Get the display name for a TestMethod and it's arguments

Parameters
testMethodA TestMethod
argsArguments to be used
Returns
The display name
string NUnit.Framework.Internal.TestNameGenerator.GetDisplayName ( MethodInfo  method)
inlineprivate

Get the display name for a MethodInfo

Parameters
methodA MethodInfo
Returns
The display name
string NUnit.Framework.Internal.TestNameGenerator.GetDisplayName ( MethodInfo  method,
object[]  args 
)
inlineprivate

Get the display name for a method with args

Parameters
methodA MethodInfo
argsArgument list for the method
Returns
The display name

Member Data Documentation

List<NameFragment> NUnit.Framework.Internal.TestNameGenerator._fragments = new List<NameFragment>()
private

The documentation for this class was generated from the following file: