Releases
v1.11.0
New rules
PosInfoMoq1005 : Defines the generic argument of the SetupSet()
method with the type of the mocked property (fixes #42 ).
PosInfoMoq2014 : The delegate in the argument of the Returns()
method must return a value with same type of the mocked method (fixes #35 ).
PosInfoMoq2015 : The Protected().Setup()
method must match the return type of the mocked method.
PosInfoMoq2016 : Mock<T>
constructor with factory lambda expression can be used only with classes (fixes #40 ).
Improvements/Fixes
PosInfoMoq2001 : Check that property setup with the SetupSet()
method are overridable (fixes #42 ).
Fix the PosInfoMoq1001 rule for the Mock<T>
instantiation with the lambda expression to create mock instances (fixes #39 ).
Fix the PosInfoMoq2004 rule for the Mock<T>
instantiation with the lambda expression to create mock instances (fixes #39 ).
Fix the PosInfoMoq1001 fixer when using the Mock.Of<T>
as argument in the constructor call (fixes #41 ).
Nuget package
You can’t perform that action at this time.