Skip to content

Releases: PosInformatique/PosInformatique.Moq.Analyzers

v1.3.0

05 Dec 19:47
1a0f8c5
Compare
Choose a tag to compare
  • Fixes the PosInfoMoq2000 rule to check the call of the Returns()/ReturnsAsync() methods for the mocked properties for the mock with Strict behavior. (fixes #6)

Add the following rules:

  • Add a new PosInfoMoq2003 rule to check the Callback() signature method (fixes #3).

Nuget package

v1.2.0

07 Nov 23:00
2b74a61
Compare
Choose a tag to compare

Add the following rules:

  • PosInfoMoq2001: The Setup() method must be used only on overridable members. (fixes #4).
  • PosInfoMoq2002: Mock<T> class can be used only to mock non-sealed class.

Nuget package

v1.1.0

07 Nov 13:02
14f68a6
Compare
Choose a tag to compare

Initial version with following rules:

  • PosInfoMoq2000: The Returns() or ReturnsAsync() methods must be call for Strict mocks.

Nuget package

v1.0.0

01 Nov 23:06
2e422ab
Compare
Choose a tag to compare

Initial version with following rules:

  • MQ1000: Verify() and VerifyAll() methods should be called when instantiate a Mock<T> instances
  • MQ1001: The `Mock instance behavior should be defined to Strict mode.

Nuget package