Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert.Equals fails for a dictionary containing a null #2829

Closed
igurney-codat opened this issue Nov 27, 2023 · 1 comment
Closed

Assert.Equals fails for a dictionary containing a null #2829

igurney-codat opened this issue Nov 27, 2023 · 1 comment

Comments

@igurney-codat
Copy link

Fails in version 2.6.2 but works in 2.6.1.

        [Fact]
        public void DictionaryOfNullable_Equals_IdenticalData()
        {
            IDictionary<string, int?> dictionary1 = new Dictionary<string, int?> { { "null", null }, { "a", 1 }, { "b", 2 }, { "c", 3 } };
            IDictionary<string, int?> dictionary2 = new Dictionary<string, int?> { { "null", null }, { "a", 1 }, { "b", 2 }, { "c", 3 } };

            Assert.Equal(dictionary1, dictionary2);
        }
@igurney-codat
Copy link
Author

I think this is a duplicate of #2824

@bradwilson bradwilson closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants