NUnit Nested Collection Comparison

前端 未结 2 2232
甜味超标
甜味超标 2021-02-20 12:45

Is there something similar to CollectionAssert.AreEquivalent() that works with nested collections?

The following code...

CollectionAssert.AreEquivalent (         


        
2条回答
  •  长发绾君心
    2021-02-20 13:11

    An old question, but somebody just posted a link to it on nunit-discuss...

    The failure is because the version of NUnit used did not support equality comparisons between two dictionaries and fell back on object comparison. Recent releases will not have this problem.

提交回复
热议问题