Comment Re:"Easy to read" is non-sense (Score 1) 414
Assert.IsTrue(list.Any(item => item == value));
against
bool matches = false;
foreach(Type item in list) { if(item == vale) { matches = true; }}
Assert.IsTrue(matches);
The first one is obviously a lot shorter, but its real advantage is that it actually looks like what it does with no need to parse loops or introducing tracking variables.