Closed scott-moxham closed 6 months ago
When testing the length of a 2D array is 0, the analyzer reports that I should use .HaveCount(0) but this isn't available for 2D arrays.
// Arrange var array = new string[0, 0]; // Assert array.Length.Should().Be(0);
Shouldn't be any issues flagged
I get an FAA0001 issue flagged with the message "Use .Should().HaveCount()"
@scott-moxham thanks for reporting this! fix coming up
Thanks @Meir017 for your super-fast response
Description
When testing the length of a 2D array is 0, the analyzer reports that I should use .HaveCount(0) but this isn't available for 2D arrays.
Complete minimal example reproducing the issue
Expected behavior:
Shouldn't be any issues flagged
Actual behavior:
I get an FAA0001 issue flagged with the message "Use .Should().HaveCount()"
Versions
Additional Information