public void IFormattableToStringWorks() { var dt = new JsDate(2011, 7, 12, 13); Assert.AreEqual(dt.ToString("yyyy-MM-dd"), "2011-08-12"); Assert.AreEqual(((IFormattable)dt).ToString("yyyy-MM-dd"), "2011-08-12"); }
public void IFormattableToStringWorks() { var dt = new JsDate(2011, 7, 12, 13); Assert.AreEqual(dt.ToString("yyyy-MM-dd"), "2011-08-12"); Assert.AreEqual(((IFormattable)dt).ToString("yyyy-MM-dd"), "2011-08-12"); }