PrivateObject Members
Visual Studio 2005
Allows test code to call methods and properties on the code under test that would be inaccessible because they are not public.
The following tables list the members exposed by the PrivateObject type.
| Name | Description | |
|---|---|---|
| PrivateObject | Overloaded. Initializes a new instance of the PrivateObject class. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Equals | Overloaded. Overridden. Returns a value that indicates whether two private objects are encapsulating the same target object. |
| GetArrayElement | Overloaded. Gets the array element using an array of subscripts for each dimension. |
| GetField | Overloaded. Gets the value of the wrapped field. |
| GetFieldOrProperty | Overloaded. Gets a value of a wrapped field or property. |
| GetHashCode | Overridden. Gets the hash code of the wrapped object. |
| GetProperty | Overloaded. Gets the value of the property of the wrapped object. |
| GetType | (Inherited from Object.) |
| Invoke | Overloaded. Used to access the members of the private object. |
| ReferenceEquals | (Inherited from Object.) |
| SetArrayElement | Overloaded. Sets the array element by using an array of subscripts for each dimension. |
| SetField | Overloaded. Sets the value of the field of the wrapped object. |
| SetFieldOrProperty | Overloaded. Sets a value of a wrapped field or property. |
| SetProperty | Overloaded. Sets the value of the property of the wrapped object. |
| ToString | (Inherited from Object.) |