shouldly / shouldly

Should testing for .NET—the way assertions should be!

Home Page:https://docs.shouldly.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShouldBe doesn't work for basic nested dictionary

darxis opened this issue · comments

The following code fails, but it should pass.
Using Shouldly v4.2.1 NuGet package

var testObject1 = new Dictionary<string, Dictionary<string, string>>
{
    { "A", new Dictionary<string, string>() }
};

var testObject2 = new Dictionary<string, Dictionary<string, string>>
{
    { "A", new Dictionary<string, string>() }
};

testObject2.ShouldBe(testObject1);