ProtectedExtension Class

Moq

Collapse imageExpand ImageCopy imageCopyHover image
Enables the Protected() method on Mock<(Of <(<'T>)>)>, allowing setups to be set for protected members by using their name as a string, rather than strong-typing them which is not possible due to their visibility.

Namespace: Moq.Protected
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)

Syntax

C#
public static class ProtectedExtension

Inheritance Hierarchy

System..::..Object
  Moq.Protected..::..ProtectedExtension

See Also