When TDD Goes Bad, NUnit wasted 2 hours of my night
[TestFixture] public class IHateNunit { [Test] public void A_list_works() { IList strs = new List() { “asdf” }; //Double Pass Assert.That(strs.Count, Is.EqualTo(1)); Assert.That(strs, Has.Count(1)); } [Test] public void An_array_doesnt() { IList<string> strs = new string[] { "asdf" }; //Pass Assert.That(strs.Count, Is.EqualTo(1)); //#FAIL Assert.That(strs, Has.Count(1)); } } »