This topic has not yet been rated - Rate this topic

BaseShadow Class

This class is used by the publicize method to help test private types.

System.Object
  Microsoft.VisualStudio.TestTools.UnitTesting.BaseShadow

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
public class BaseShadow

The BaseShadow type exposes the following members.

  Name Description
Protected method BaseShadow(PrivateObject) Initializes a new instance of the BaseShadow class.
Protected method BaseShadow(PrivateType) Initializes a new instance of the BaseShadow class.
Top
  Name Description
Public property Target Gets the target object.
Top
  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this instance. (Overrides Object.GetHashCode().)
Protected method Static member GetShadowAttacher Used for dynamically restoring of arrays of private types.
Protected method Static member GetTargetObject Static function that will be used with TransferArray for deep array copy with unshadowing the real target Type objects.
Protected method Static member GetTargetType Returns the target Type for a potential shadow class.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Static member MakeArrayType Returns a Type object that represents an array of the specified type, with the specified number of dimensions.
Public method Static member MakeByRefType Returns a Type object that represents the specified type when it is passed as a ref parameter.
Public method Static member MakePointerType Returns a Type object that represents a pointer to the specified type.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method Static member 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.
Public method ToString Returns a String that represents the current BaseShadow object. (Overrides Object.ToString().)
Protected method Static member TransferArray Performs a deep copy of an array of one Type into a similar array of different Type.
Top
  Name Description
Public field Static member AttachShadowName The name of the static method in derived classes.
Protected field m_privateObject The PrivateObject stored in this instance.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ