Export (0) Print
Expand All

PrivateObject Constructor (Object)

Initializes a new instance of the PrivateObject class that creates the wrapper for the specified object.

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

public PrivateObject(
	Object obj
)

Parameters

obj
Type: Object

The object to wrap.

ExceptionCondition
ArgumentNullException

obj is null

The following table shows initial property values for an instance of the PrivateObject class that is instantiated with PrivateObject.

Property

Value

Target

obj

RealType

The Type of obj

Show:
© 2015 Microsoft