Skip to content

Commit

Permalink
feat: Fix dictionary custom methods false diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Meir017 committed Jul 19, 2024
1 parent fa8e959 commit 3e82d7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/FluentAssertions.Analyzers.Tests/Tips/DictionaryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class DictionaryTests
using FluentAssertions;
namespace TestNamespace
{
public class MultiKeyDict<TKey1, TKey2, TValue> : Dictionary<TKey1, Dictionary<TKey2, TValue>>
{
public bool ContainsKey(TKey1 key1, TKey2 key2) => false;
Expand All @@ -32,7 +33,8 @@ public void TestMethod(MultiKeyDict<int, int, string> actual)
actual.ContainsKey(0, 1).Should().BeTrue();
actual.ContainsValue(0, 1).Should().BeTrue();
}
}")]
}
}")]
[Implemented]
public void DictionaryMethods_CustomMethods_TestNoAnalyzer(string code) => DiagnosticVerifier.VerifyCSharpDiagnosticUsingAllAnalyzers(code);

Expand Down

0 comments on commit 3e82d7d

Please sign in to comment.