O'Reilly logo
  • Przemyslaw Lagodzinski thinks this is interesting:

Assert.Equal(0, target.Lines.Where(c => c.Product == p2).Count());

From

Cover of Pro ASP.NET Core MVC 2

Note

Isn't it better to do: Assert.Empty(target.Lines.Where(c => c.Product == 2)); ?