diff --git a/src/Polly.Specs/Registry/ReadOnlyPolicyRegistrySpecs.cs b/src/Polly.Specs/Registry/ReadOnlyPolicyRegistrySpecs.cs index b404ce271dc..57dab67b038 100644 --- a/src/Polly.Specs/Registry/ReadOnlyPolicyRegistrySpecs.cs +++ b/src/Polly.Specs/Registry/ReadOnlyPolicyRegistrySpecs.cs @@ -282,7 +282,10 @@ public void Policies_Should_Be_Added_To_The_Registry_When_Using_Collection_Initi {key, policy} }; - testRegistry.Should().Equals(new KeyValuePair(key, policy)); + testRegistry.Should().Equal(new Dictionary + { + {key, policy} + }); } #endregion }