Export (0) Print
Expand All

PrivateType Class

Represents the type of a private class that gives access to private static implementations.

System.Object
  Microsoft.VisualStudio.TestTools.UnitTesting.PrivateType

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

public class PrivateType

The PrivateType type exposes the following members.

  NameDescription
Public methodPrivateType(Type)Initializes a new instance of the PrivateType class with the type information.
Public methodPrivateType(String, String)Initializes a new instance of the PrivateType class.
Top

  NameDescription
Public propertyReferencedTypeGets the Type representing the PrivateType.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetStaticArrayElement(String, Int32[])Gets a static array element contained in the wrapped type.
Public methodGetStaticArrayElement(String, BindingFlags, Int32[])Gets a static array element contained in the wrapped type.
Public methodGetStaticField(String)Gets a static field contained in the wrapped type.
Public methodGetStaticField(String, BindingFlags)Gets a static field contained in the wrapped type.
Public methodGetStaticFieldOrProperty(String)Gets a value of a static field or property in a wrapped type based on the name.
Public methodGetStaticFieldOrProperty(String, BindingFlags)Gets a value of a static field or property in a wrapped type based on the name.
Public methodGetStaticProperty(String, Object[])Gets a static property contained in the wrapped type.
Public methodGetStaticProperty(String, BindingFlags, Object[])Gets a static property contained in the wrapped type.
Public methodGetStaticProperty(String, BindingFlags, Type[], Object[])Gets a static indexed property contained in the wrapped type.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInvokeStatic(String, Object[])Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, Object[], CultureInfo)Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, BindingFlags, Object[])Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, Type[], Object[])Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, BindingFlags, Object[], CultureInfo)Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, BindingFlags, Type[], Object[])Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, Type[], Object[], CultureInfo)Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, Type[], Object[], Type[])Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, BindingFlags, Type[], Object[], CultureInfo)Invokes static methods on the PrivateType.
Public methodInvokeStatic(String, BindingFlags, Type[], Object[], CultureInfo, Type[])Invokes static methods on the PrivateType.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetStaticArrayElement(String, Object, Int32[])Sets a static array element contained in the wrapped type.
Public methodSetStaticArrayElement(String, BindingFlags, Object, Int32[])Sets a static array element contained in the wrapped type.
Public methodSetStaticField(String, Object)Sets a static field contained in the wrapped type.
Public methodSetStaticField(String, BindingFlags, Object)Sets a static field contained in the wrapped type.
Public methodSetStaticFieldOrProperty(String, Object)Sets a static field or property contained in the wrapped type.
Public methodSetStaticFieldOrProperty(String, BindingFlags, Object)Sets a static field or property contained in the wrapped type.
Public methodSetStaticProperty(String, Object, Object[])Sets a static property contained in the wrapped type.
Public methodSetStaticProperty(String, Object, Type[], Object[])Sets a static property contained in the wrapped type.
Public methodSetStaticProperty(String, BindingFlags, Object, Object[])Sets a static property contained in the wrapped type.
Public methodSetStaticProperty(String, BindingFlags, Object, Type[], Object[])Sets a static property contained in the wrapped type.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The test generator automatically creates the private type.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft