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.
PrivateObject Constructor (String^, String^, array<Type^>^, array<Object^>^)
Initializes a new instance of the PrivateObject class. This creates an object of the specified type and wraps it in the private object.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public: PrivateObject( String^ assemblyName, String^ typeName, array<Type^>^ parameterTypes, array<Object^>^ args )
Parameters
- assemblyName
-
Type:
System::String^
Name of the assembly that contains the type.
- typeName
-
Type:
System::String^
Fully qualified name of the type.
- parameterTypes
-
Type:
array<System::Type^>^
An array of Type objects representing the number, order, and type of the parameters for constructing the object.
- args
-
Type:
array<System::Object^>^
The arguments to define the object.
| Exception | Condition |
|---|---|
| ArgumentNullException | assemblyName or typeName is null. |
| ArgumentException | parameterTypes is multidimensional. -or- A constructor cannot be found to match the parameters specified in PrivateObject. |
Show: