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.Builders.DatapointProvider Class Reference

Provides data from fields marked with the DatapointAttribute or the DatapointsAttribute. More...

+ Inheritance diagram for NUnit.Framework.Internal.Builders.DatapointProvider:
+ Collaboration diagram for NUnit.Framework.Internal.Builders.DatapointProvider:

Public Member Functions

bool HasDataFor (IParameterInfo parameter)
 Determine whether any data is available for a parameter. More...
 
System.Collections.IEnumerable GetDataFor (IParameterInfo parameter)
 Return an IEnumerable providing data for use with the supplied parameter. More...
 

Private Member Functions

Type GetTypeFromMemberInfo (MemberInfo member)
 
Type GetElementTypeFromMemberInfo (MemberInfo member)
 

Detailed Description

Provides data from fields marked with the DatapointAttribute or the DatapointsAttribute.

Member Function Documentation

bool NUnit.Framework.Internal.Builders.DatapointProvider.HasDataFor ( IParameterInfo  parameter)
inline

Determine whether any data is available for a parameter.

Parameters
parameterA ParameterInfo representing one argument to a parameterized test
Returns
True if any data is available, otherwise false.

Implements NUnit.Framework.Interfaces.IParameterDataProvider.

References NUnit.Framework.Interfaces.IParameterInfo.Method, and NUnit.Framework.Interfaces.IParameterInfo.ParameterType.

System.Collections.IEnumerable NUnit.Framework.Internal.Builders.DatapointProvider.GetDataFor ( IParameterInfo  parameter)
inline

Return an IEnumerable providing data for use with the supplied parameter.

Parameters
parameterA ParameterInfo representing one argument to a parameterized test
Returns
An IEnumerable providing the required data

Implements NUnit.Framework.Interfaces.IParameterDataProvider.

References NUnit.Framework.Internal.TypeHelper.GetEnumValues(), NUnit.Framework.Internal.Builders.ProviderCache.GetInstanceOf(), NUnit.Framework.Interfaces.IParameterInfo.Method, NUnit.Framework.Interfaces.IParameterInfo.ParameterType, NUnit.Framework.Interfaces.ITypeInfo.Type, and NUnit.Framework.Interfaces.IMethodInfo.TypeInfo.

Type NUnit.Framework.Internal.Builders.DatapointProvider.GetTypeFromMemberInfo ( MemberInfo  member)
inlineprivate
Type NUnit.Framework.Internal.Builders.DatapointProvider.GetElementTypeFromMemberInfo ( MemberInfo  member)
inlineprivate

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