Skip to content

Commit

Permalink
Update CollectionTests.cs and remove CollectionShouldHaveElementAt0Nu…
Browse files Browse the repository at this point in the history
…ll.cs
  • Loading branch information
Meir017 committed Dec 10, 2023
1 parent b94d586 commit 653d4b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 41 deletions.
4 changes: 2 additions & 2 deletions src/FluentAssertions.Analyzers.Tests/Tips/CollectionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ public void CollectionShouldContainSingle_TestAnalyzer_GenericIEnumerableShouldR
[NotImplemented]
[AssertionDiagnostic("actual.AsEnumerable().FirstOrDefault().Should().BeNull({0}).And.ToString();")]
[Ignore("What Should Happen?")]
public void CollectionShouldHaveElementAt0Null_TestAnalyzer(string assertion) => VerifyCSharpDiagnosticCodeBlock<CollectionShouldHaveElementAt0NullAnalyzer>(assertion);
public void CollectionShouldHaveElementAt0Null_TestAnalyzer(string assertion) => VerifyCSharpDiagnosticCodeBlock<CollectionAnalyzer>(assertion);

[AssertionDataTestMethod]
[AssertionCodeFix(
Expand All @@ -654,7 +654,7 @@ public void CollectionShouldContainSingle_TestAnalyzer_GenericIEnumerableShouldR
oldAssertion: "actual.AsEnumerable().FirstOrDefault().Should().BeNull({0}).And.ToString();",
newAssertion: "actual.AsEnumerable().Should().HaveElementAt(0, null{0}).And.ToString();")]
[Ignore("What Should Happen?")]
public void CollectionShouldHaveElementAt0Null_TestCodeFix(string oldAssertion, string newAssertion) => VerifyCSharpFixCodeBlock<CollectionShouldHaveElementAt0NullCodeFix, CollectionShouldHaveElementAt0NullAnalyzer>(oldAssertion, newAssertion);
public void CollectionShouldHaveElementAt0Null_TestCodeFix(string oldAssertion, string newAssertion) => VerifyCSharpFixCodeBlock<CollectionCodeFix, CollectionAnalyzer>(oldAssertion, newAssertion);

private void VerifyCSharpDiagnosticCodeBlock<TDiagnosticAnalyzer>(string sourceAssertion) where TDiagnosticAnalyzer : Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer, new()
{
Expand Down

This file was deleted.

0 comments on commit 653d4b0

Please sign in to comment.