Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Team Test API
PrivateObject Class
 PrivateObject Members
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Team Test API
PrivateObject Members

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
Public constructor PrivateObject Overloaded. Initializes a new instance of the PrivateObject class. 
Top
  Name Description
Public property RealType Gets the type of the underlying object. 
Public property Target Gets or sets the wrapped object. 
Top
(see also Protected Methods )
  Name Description
Public method Equals Overloaded. Overridden. Returns a value that indicates whether two private objects are encapsulating the same target object.  
Public method GetArrayElement Overloaded. Gets the array element using an array of subscripts for each dimension.  
Public method GetField Overloaded. Gets the value of the wrapped field.  
Public method GetFieldOrProperty Overloaded. Gets a value of a wrapped field or property.  
Public method GetHashCode Overridden. Gets the hash code of the wrapped object.  
Public method GetProperty Overloaded. Gets the value of the property of the wrapped object.  
Public method GetType  (Inherited from Object.)
Public method Invoke Overloaded. Used to access the members of the private object.  
Public method Static ReferenceEquals  (Inherited from Object.)
Public method SetArrayElement Overloaded. Sets the array element by using an array of subscripts for each dimension.  
Public method SetField Overloaded. Sets the value of the field of the wrapped object.  
Public method SetFieldOrProperty Overloaded. Sets a value of a wrapped field or property.  
Public method SetProperty Overloaded. Sets the value of the property of the wrapped object.  
Public method ToString  (Inherited from Object.)
Top
  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker