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)

public class GenericParameterHelper : IComparable, 
	IEnumerable, ICloneable

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

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.

Community Additions