-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HaveElementAt #13
Comments
just to be sure, list.ElementAt(0).Message.Should().Be(""); should not trigger any analyzers, right? |
right now the way to discover this scenario is if the The exception I see is having cases like this list.ElementAt(0).ToString().Should().Be(flag); where the user is doing something weired... |
You are quite good at giving hints :) string str = "a, b";
string[] splitLines = str.Split(',');
splitLines[0].Trim().Should().Be("a");
splitLines[1].Trim().Should().Be("b"); |
I created a branch for testing stuff, I have a lead on the new visitor algorithm - https://github.com/fluentassertions/fluentassertions.analyzers/blob/playground/src/FluentAssertions.Analyzers/Poc/PocAnalyzer.cs |
@jnyrup notice the tests in the file https://github.com/fluentassertions/fluentassertions.analyzers/blob/feature/GH-13/src/FluentAssertions.Analyzers.Tests/Tips/SanityTests.cs Are there cases related to the exception in this issue you can think of that I missed? |
I suspect this might be related to the other issue about the syntax tree?
If I rewrite the assertion to be valid for all enumerables
it is simplified into the invalid
The text was updated successfully, but these errors were encountered: