Welcome to EMC Consulting Blogs Sign in | Join | Help

Simon Munro

User Count - A TDD and LINQ update to a classic

This t-shirt has been around for years...

image

So I thought that it needed a bit of an update.

Assert.AreNotEqual(0, users.Count(u => u.clue > 0));

Simon Munro

Published 05 December 2008 09:16 by simon.munro
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Anthony.Steele said:

I'd wear one.

Of course, the statement could also be written

 Assert.IsTrue(users.Exists(u => u.clue > 0));

December 7, 2008 13:24
 

joshka said:

It should be AreEqual and IsFalse... ;)

February 6, 2009 17:09

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server (Personal Edition), by Telligent Systems