共用方式為


PrivateObject Constructor

Include Protected Members
Include Inherited Members

Initializes a new instance of the PrivateObject class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method PrivateObject(Object) Initializes a new instance of the PrivateObject class that creates the wrapper for the specified object.
Public method PrivateObject(Object, PrivateType) Initializes a new instance of the PrivateObject class that creates the wrapper for the specified object.
Public method PrivateObject(Object, String) Initializes a new instance of the PrivateObject class that creates the wrapper for the specified object.
Public method PrivateObject(Type, array<Object[]) Initializes a new instance of the PrivateObject class that creates the wrapper for the specified object.
Public method PrivateObject(String, String, array<Object[]) Initializes a new instance of the PrivateObject class. This creates the object of the specified type and wraps it in the private object.
Public method PrivateObject(Type, array<Type[], array<Object[]) Initializes a new instance of the PrivateObject class.
Public method PrivateObject(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.

Top

See Also

Reference

PrivateObject Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace