Replies: 2 comments 6 replies
-
Easiest way would be to define your own mock factory method, like |
Beta Was this translation helpful? Give feedback.
-
@jerone We developed PosInformatique.Moq.Analyzers to check that all our The rule PosInfoMoq1001 check the The last NuGet package of this analyzer can be found here: https://www.nuget.org/packages/PosInformatique.Moq.Analyzers/. Anyway I am agree with you, it should be a "global setting" to define the default |
Beta Was this translation helpful? Give feedback.
-
Is it possible to set a default
MockBehavior
for the whole test project? WithModuleInitializer
for example.Currently, I have to manually define
MockBehavior.Strict
on all mocks.But I want all my tests to be Strict by default.
Beta Was this translation helpful? Give feedback.
All reactions