BaseShadow Class
Visual Studio 2012
This class is used by the publicize method to help test private types.
Namespace:
Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
The BaseShadow type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | BaseShadow(PrivateObject) | Initializes a new instance of the BaseShadow class. |
![]() | BaseShadow(PrivateType) | Initializes a new instance of the BaseShadow class. |
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Overrides Object.Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns the hash code for this instance. (Overrides Object.GetHashCode.) |
![]() ![]() | GetShadowAttacher | Used for dynamically restoring of arrays of private types. |
![]() ![]() | GetTargetObject | Static function that will be used with TransferArray for deep array copy with unshadowing the real target Type objects. |
![]() ![]() | GetTargetType | Returns the target Type for a potential shadow class. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | MakeArrayType | Returns a Type object that represents an array of the specified type, with the specified number of dimensions. |
![]() ![]() | MakeByRefType | Returns a Type object that represents the specified type when it is passed as a ref parameter. |
![]() ![]() | MakePointerType | Returns a Type object that represents a pointer to the specified type. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Same | Dummy method used to transfer the arrays of the same Type. This is the failsafe implementation of the BaseShadow.ElementConverter delegate used for arrays of the same type. |
![]() | ToString | Returns a String that represents the current BaseShadow object. (Overrides Object.ToString.) |
![]() ![]() | TransferArray | Performs a deep copy of an array of one Type into a similar array of different Type. |
| Name | Description | |
|---|---|---|
![]() ![]() | AttachShadowName | The name of the static method in derived classes. |
![]() | m_privateObject | The PrivateObject stored in this instance. |
Public Type accessors that use the PrivateObject class to test private types must inherit from this class.
Use this as a base class to inherit from. Do not call the methods of this class directly.
