How to assert that two list contains elements with the same public properties in NUnit?

后端 未结 10 1746
日久生厌
日久生厌 2021-02-04 02:20

I want to assert that the elements of two list contains values that I expected, something like:

var foundCollection = fooManager.LoadFoo();
var expectedCollectio         


        
10条回答
  •  既然无缘
    2021-02-04 02:57

    To perform equivilance operations on complex types you need to implement IComaprable.

    http://support.microsoft.com/kb/320727

    Alternatively you could use recursive reflection, which is less desirable.

提交回复
热议问题