Richard Murillo
Richard Murillo
```csharp public interface IFoo { Task DoSomethingAsync(); } var mock = new Mock(); // Preferred way 4.16+ mock.Setup(foo => foo.DoSomethingAsync().Result).Returns(true); // Preferred way earlier than 4.16 mock.Setup(foo => foo.DoSomethingAsync()).ReturnsAsync(true); ```...
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)...
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...
# 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...
- [ ] Setup() should be us-ed for methods, not for properties - [ ] AdvancedMatcherAttribute should accept only IMatcher types - [ ] Checks for protected mocks when dynamically...
When using class `AnalyzerTest` and a diagnostic is detected, the following output is written to the test log ``` System.InvalidOperationException Context: Diagnostics of test state Mismatch between number of diagnostics...
Update settings to include Analyzers as well as CodeFixes ## Changes - Test Settings - Refined the configuration for internal coverage measurements to enhance code coverage accuracy. - Adjusted filtering...