Comparing Two objects using Assert.AreEqual()

后端 未结 5 1071
眼角桃花
眼角桃花 2020-12-30 20:24

I \'m writing test cases for the first time in visual studio c# i have a method that returns a list of objects and i want to compare it with another list of objects by using

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 20:43

    You could serialize them and test the resulting string.

提交回复
热议问题