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.

Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to set a default
MockBehaviorfor the whole test project? WithModuleInitializerfor example.Currently, I have to manually define
MockBehavior.Stricton all mocks.But I want all my tests to be Strict by default.
Beta Was this translation helpful? Give feedback.
All reactions