dictionary.Should().Equal(new Dictionary<string, object> { { "name", null } });
This throws NullReferenceException because the code in GenericDictionaryAssertions uses .Equal on the null value. Existing code:
Execute.Verification
.ForCondition(Subject[key].Equals(expected[key]))
If the Subject[key] is null, the above will throw even if the expected[key] is also null (in which case I would expect it to pass).
Comments: Associated with changeset 75894.
This throws NullReferenceException because the code in GenericDictionaryAssertions uses .Equal on the null value. Existing code:
Execute.Verification
.ForCondition(Subject[key].Equals(expected[key]))
If the Subject[key] is null, the above will throw even if the expected[key] is also null (in which case I would expect it to pass).
Comments: Associated with changeset 75894.