PrivateObject Members
Include Protected Members
Include Inherited Members
Allows test code to call methods and properties on the code under test that would be inaccessible because they are not public.
The PrivateObject type exposes the following members.
Constructors
Name
Description
Overloaded. Initializes a new instance of the PrivateObject class.
Top
Methods
Name
Description
Returns a value that indicates whether two private objects are encapsulating the same target object. (Overrides Object.Equals(Object).)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Overloaded. Gets the array element using an array of subscripts for each dimension.
Overloaded. Gets the value of the wrapped field.
Overloaded. Gets a value of a wrapped field or property.
Gets the hash code of the wrapped object. (Overrides Object.GetHashCode().)
Overloaded. Gets the value of the property of the wrapped object.
Gets the type of the current instance. (Inherited from Object.)
Overloaded. Used to access the members of the private object.
Creates a shallow copy of the current Object. (Inherited from Object.)
Overloaded. Sets the array element by using an array of subscripts for each dimension.
Overloaded. Sets the value of the field of the wrapped object.
Overloaded. Sets a value of a wrapped field or property.
Overloaded. Sets the value of the property of the wrapped object.
Returns a string that represents the current object. (Inherited from Object.)
Top
Properties
Name
Description
Gets the type of the underlying object.
Gets or sets the wrapped object.
Top