Skip to content

v1.9.1

Compare
Choose a tag to compare
@GillesTourreau GillesTourreau released this 06 Aug 09:14
· 4 commits to main since this release
d639007

New rules:

  • PosInfoMoq2009: Mock.Of<T> method must be used only to mock non-sealed class.
  • PosInfoMoq2010: Mock.Of<T> method must be used only with types that contains parameterless contructor.
  • PosInfoMoq2011: Constructor of the mocked class must be accessible.

Improvements/Fixes

  • Updates the PosInfoMoq1001 rule to check Strict behavior usage for the Mock.Of<T>() method (fixes #27).

Nuget package