File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/FluentAssertions.Analyzers.Tests/Tips Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,25 @@ public void AssertionCallMultipleMethodWithTheSameNameAndArguments()
1414
1515 DiagnosticVerifier . VerifyCSharpDiagnosticUsingAllAnalyzers ( source ) ;
1616 }
17+
18+ [ TestMethod ]
19+ [ NotImplemented ( Reason = "https://github.com/fluentassertions/fluentassertions.analyzers/issues/13" ) ]
20+ public void PropertyOfIndexerShouldBe_ShouldNotThrowException ( )
21+ {
22+ const string assertion = "actual[0].Message.Should().Be(\" test\" );" ;
23+ var source = GenerateCode . EnumerableAssertion ( assertion ) ;
24+
25+ DiagnosticVerifier . VerifyCSharpDiagnosticUsingAllAnalyzers ( source ) ;
26+ }
27+
28+ [ TestMethod ]
29+ [ NotImplemented ( Reason = "https://github.com/fluentassertions/fluentassertions.analyzers/issues/13" ) ]
30+ public void PropertyOfElementAtShouldBe_ShouldNotTriggerDiagnostic ( )
31+ {
32+ const string assertion = "actual.ElementAt(0).Message.Should().Be(\" test\" );" ;
33+ var source = GenerateCode . EnumerableAssertion ( assertion ) ;
34+
35+ DiagnosticVerifier . VerifyCSharpDiagnosticUsingAllAnalyzers ( source ) ;
36+ }
1737 }
1838}
You can’t perform that action at this time.
0 commit comments