public void FormatNonDate() { DateTimeFormatter fmt = new DateTimeFormatter("d"); Assert.Throws <ArgumentException>(() => fmt.Format("not a date")); }
public void FormatNonDate() { DateTimeFormatter fmt = new DateTimeFormatter("d"); fmt.Format("not a date"); }
public void FormatNullValue() { DateTimeFormatter fmt = new DateTimeFormatter("d"); Assert.Throws <ArgumentNullException>(() => fmt.Format(null)); }
public void FormatNullValue() { DateTimeFormatter fmt = new DateTimeFormatter("d"); fmt.Format(null); }