Tag Archives: testing

Give Me An Assertion Vasily. One Assertion Only, Please

I was work­ing through some bro­ken unit tests this morn­ing for the project I’m cur­rently on and the sec­ond one in my list looked like this: [Test­Method] pub­lic void SelectTest() { Item item = session.SelectSingle(a => a.SkuNo == _item.SkuNo); Assert.IsTrue(item.Id > 0); Assert.AreEqual(item.Id, _item.Id); Assert.AreEqual(item.IsAutoReplenished, _item.IsAutoReplenished); Assert.AreEqual(item.Status, _item.Status); Assert.AreEqual(item.MaintenanceLevel, _item.MaintenanceLevel); Assert.AreEqual(item.Description, _item.Description); Assert.AreEqual(item.Type, _item.Type); Assert.IsTrue(item.LastAdjustmentDate.HasValue); Assert.AreEqual(item.LastAdjustmentDate.Value.Date,

Testing Planetary Death Rays

Google tells you how. The exam­ple is in Java but could be extended to C# easily.

New FsUnit Release

You can read about it here. Sim­pli­fied syn­tax is one of the main improve­ments which is def­i­nitely cool. Per­son­ally, I would have named it FUnit for com­edy value but I’m guess­ing Ray didn’t see it that way. The Daily Pal­lia­tive: Upcom­ing Hurricanes