loading...

re: Introduction to ASP.NET Core Integration Testing VIEW POST

FULL DISCUSSION
 

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 :)

 

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);
code of conduct - report abuse