public void ToDateStringWorks() { var dt = new JsDate(2011, 7, 12, 13, 42); var s = dt.ToDateString(); Assert.IsTrue(s.IndexOf("2011") >= 0 && s.IndexOf("42") < 0); }