Export (0) Print
Expand All

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

Community Additions

ADD
Show:
© 2014 Microsoft