public void ToShortDate() { DateTime now = DateTime.Now; string expected = now.ToShortDateString(); Assert.AreEqual(expected, helper.ToShortDate(now)); Assert.AreEqual(String.Empty, helper.ToShortDate(null)); }