ProtectedExtension Class

Moq 2.6

Enables the Protected() method on Mock<(Of <(T>)>), allowing expectations 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: 2.6.1014.1 (2.6.0.0)

Syntax

C#
public static class ProtectedExtension

Inheritance Hierarchy

Object
  Moq.Protected..::.ProtectedExtension

See Also