PrivateType Class
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

PrivateType Class

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

Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in microsoft.visualstudio.qualitytools.unittestframework.dll)

public class PrivateType
public class PrivateType
public class PrivateType

The test generator automatically creates the private type.

  • ReflectionPermission  The user must have the TypeInformation and MemberAccess flags set to use this type.

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

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:
© 2016 Microsoft