Add analyzers for strict behavior mode #127
Labels
analyzers
Change that impacts an analyzer behavior
enhancement
help wanted
.NET
Pull requests that update .net code
Milestone
Given
Two cases:
When
new Mock<TestClass>(MockBehavior.Strict).Object.TaskAsync();
executes it will throw an exception at runtime becauseMockBehavior.Strict
is set but there is noSetup
for the methodTaskAsync
Similar to the first case, if the setup does not include a return, there will be a runtime exception
Related to #78
The text was updated successfully, but these errors were encountered: