ShouldBe doesn't work for basic nested dictionary
darxis opened this issue · comments
Alexis Nowikowski commented
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);