moq.analyzers
moq.analyzers copied to clipboard
Set of analyzers for Moq mocking library
Test the various ways the analyzer could be disabled and ensure the analyzer does not throw up a warning. Ideally this would be checked prior to registering for any work
In #89 new analyzers are added. This issue is keeping track of the issues flagged by the newly added analyzers - [C# Guidelines](https://github.com/dennisdoomen/CSharpGuidelines) - [ ] [AV1500](https://github.com/dennisdoomen/CSharpGuidelines/blob/5.7.0/_rules/1500.md) - [x] [AV1708](https://github.com/dennisdoomen/CSharpGuidelines/blob/5.7.0/_rules/1708.md)...
- [ ] Package icon - [x] README badges - [x] Add README to package
The perf comparison tools introduced in #119 use private pre-release packages for console rendering, etc. The project should be updated to use stable OSS packages from NuGet. This has caused...
Given ```csharp public class TestClass { public virtual Task TaskAsync() => Task.CompletedTask; } ``` Two cases: 1. Mock has no setup corresponding to the specified invocation When `new Mock(MockBehavior.Strict).Object.TaskAsync();` executes...
`NoConstructorArgumentsForInterfaceMockAnalyzerTests` has a doppleganger test to ensure that it doesn't flag a user's class that happens to also be named `Mock`. We should: 1. Expand this scenario to cover all...
Many devs have strong opinions on `MockBehavior.Strict`, `MockBehavior.Loose` and the default behavior (Loose). We should find a way to balance letting devs enforce the rules they want while not enforcing...
# Refactor to IOperation explained ## What's All This About? The code analyzers and fixes in this repo directly use the C# syntax tree and the semantic model to detect...
I'm not sure we're following best practices for the strings for analyzers. - [ ] Currently our `Message` doesn't accept any format strings, it probably belongs in `Description` instead -...