NUnit Nested Collection Comparison

前端 未结 2 2218
甜味超标
甜味超标 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:20

    You would need to write your own. However, if it were me I would try to write my Asserts in a different way so that if there was a difference in the two lists it was more obvious why/what was wrong.

提交回复
热议问题