File tree 1 file changed +6
-0
lines changed
src/FluentAssertions.Analyzers.Tests/Tips
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -629,6 +629,12 @@ public void CollectionShouldContainSingle_TestAnalyzer_GenericIEnumerableShouldR
629
629
[ AssertionCodeFix (
630
630
oldAssertion : "actual.ToList().Should().HaveCount(1{0}).And.ToString();" ,
631
631
newAssertion : "actual.ToList().Should().ContainSingle({0}).And.ToString();" ) ]
632
+ [ AssertionCodeFix (
633
+ oldAssertion : "actual.Should().HaveCount(1{0}).And.Contain(item => item == expectedItem);" ,
634
+ newAssertion : "actual.Should().ContainSingle({0}).And.Contain(item => item == expectedItem);" ) ]
635
+ [ AssertionCodeFix (
636
+ oldAssertion : "actual.AsEnumerable().Should().HaveCount(1{0}).And.Contain(item => item == expectedItem).And.ToString();" ,
637
+ newAssertion : "actual.AsEnumerable().Should().ContainSingle({0}).And.Contain(item => item == expectedItem).And.ToString();" ) ]
632
638
[ Implemented ]
633
639
public void CollectionShouldContainSingle_TestCodeFix ( string oldAssertion , string newAssertion ) => VerifyCSharpFixCodeBlock ( oldAssertion , newAssertion ) ;
634
640
You can’t perform that action at this time.
0 commit comments