Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GenericParameterHelper Class

 

This class is a placeholder for use with generics. It helps you test generic types by letting you pass non-specific type arguments.

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

System::Object
  Microsoft.VisualStudio.TestTools.UnitTesting::GenericParameterHelper

public ref class GenericParameterHelper : IComparable, IEnumerable, 
	ICloneable

NameDescription
System_CAPS_pubmethodGenericParameterHelper()

Initializes a new instance of the GenericParameterHelper class. This constructor initializes the Data property to a random value.

System_CAPS_pubmethodGenericParameterHelper(Int32)

Initializes a new instance of the GenericParameterHelper class. This constructor initializes the Data property to a user specified value.

NameDescription
System_CAPS_pubpropertyData

Gets or sets the Data property for this instance.

NameDescription
System_CAPS_pubmethodClone()

Creates a new GenericParameterHelper that is a copy of the current instance.

System_CAPS_pubmethodCompareTo(Object^)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified GenericParameterHelper object is equal to the current GenericParameterHelper object.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator whose length is derived from the Data property.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this GenericParameterHelper object.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

A unit test might not be able to pass a real type to a generic method that it is testing. That code can pass this generic placeholder instead.

When the Team System testing tools generates a unit test for testing a generic type, the calls that test that generic type use placeholder generic type arguments.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: