DEV Community

Discussion on: Introduction to ASP.NET Core Integration Testing

tomasmuzas profile image
Tomas Mūžas • Edited on

Hey, nice post! Just my two cents, but I believe you can use Assert.Equal on collections as well, cleaning up quite a lot of code :)

kaos profile image
Kai Oswald Author

It doesn't, but there's a neat utility class for Collections called CollectionAssert which I just found that does that!

So the code could be cut to:

CollectionAssert.AreEqual(expectedResponse, actualResponse);