TypeHelper provides static methods that operate on Types.
More...
|
class | NonmatchingTypeClass |
|
|
static string | GetDisplayName (Type type) |
| Gets the display name for a Type as used by NUnit. More...
|
|
static string | GetDisplayName (Type type, object[] arglist) |
| Gets the display name for a Type as used by NUnit. More...
|
|
static Type | BestCommonType (Type type1, Type type2) |
| Returns the best fit for a common type to be used in matching actual arguments to a methods Type parameters. More...
|
|
static bool | IsNumeric (Type type) |
| Determines whether the specified type is numeric. More...
|
|
static void | ConvertArgumentList (object[] arglist, IParameterInfo[] parameters) |
| Convert an argument list to the required parameter types. Currently, only widening numeric conversions are performed. More...
|
|
static bool | CanDeduceTypeArgsFromArgs (Type type, object[] arglist, ref Type[] typeArgsOut) |
| Determines whether this instance can deduce type args for a generic type from the supplied arguments. More...
|
|
static Array | GetEnumValues (Type enumType) |
| Gets the _values for an enumeration, using Enum.GetTypes where available, otherwise through reflection. More...
|
|
static string[] | GetEnumNames (Type enumType) |
| Gets the ids of the _values for an enumeration, using Enum.GetNames where available, otherwise through reflection. More...
|
|
|
static readonly Type | NonmatchingType = typeof( NonmatchingTypeClass ) |
| A special value, which is used to indicate that BestCommonType() method was unable to find a common type for the specified arguments. More...
|
|
TypeHelper provides static methods that operate on Types.
static string NUnit.Framework.Internal.TypeHelper.GetDisplayName |
( |
Type |
type | ) |
|
|
inlinestatic |
static string NUnit.Framework.Internal.TypeHelper.GetDisplayName |
( |
Type |
type, |
|
|
object[] |
arglist |
|
) |
| |
|
inlinestatic |
Gets the display name for a Type as used by NUnit.
- Parameters
-
type | The Type for which a display name is needed. |
arglist | The arglist provided. |
- Returns
- The display name for the Type
static Type NUnit.Framework.Internal.TypeHelper.BestCommonType |
( |
Type |
type1, |
|
|
Type |
type2 |
|
) |
| |
|
inlinestatic |
static bool NUnit.Framework.Internal.TypeHelper.IsNumeric |
( |
Type |
type | ) |
|
|
inlinestatic |
static void NUnit.Framework.Internal.TypeHelper.ConvertArgumentList |
( |
object[] |
arglist, |
|
|
IParameterInfo[] |
parameters |
|
) |
| |
|
inlinestatic |
static bool NUnit.Framework.Internal.TypeHelper.CanDeduceTypeArgsFromArgs |
( |
Type |
type, |
|
|
object[] |
arglist, |
|
|
ref Type[] |
typeArgsOut |
|
) |
| |
|
inlinestatic |
static Array NUnit.Framework.Internal.TypeHelper.GetEnumValues |
( |
Type |
enumType | ) |
|
|
inlinestatic |
static string [] NUnit.Framework.Internal.TypeHelper.GetEnumNames |
( |
Type |
enumType | ) |
|
|
inlinestatic |
const int NUnit.Framework.Internal.TypeHelper.STRING_MAX = 40 |
|
private |
const int NUnit.Framework.Internal.TypeHelper.STRING_LIMIT = STRING_MAX - 3 |
|
private |
const string NUnit.Framework.Internal.TypeHelper.THREE_DOTS = "..." |
|
private |
readonly Type NUnit.Framework.Internal.TypeHelper.NonmatchingType = typeof( NonmatchingTypeClass ) |
|
static |
The documentation for this class was generated from the following file:
- unittests/NUnit_3_0_1_src/src/NUnitFramework/framework/Internal/TypeHelper.cs