public void ParseDateThrowsOnInvalidDateTimeValue() { Assert.Throws <ArgumentException>(() => { SmartInsiderEvent.ParseDate("05/21/2019 00:00:00"); }); }
public void ParsesOldAndNewTransactionDateTimeValues(string date) { var expected = new DateTime(2019, 1, 1, 23, 59, 59); var actual = SmartInsiderEvent.ParseDate(date); Assert.AreEqual(expected, actual); }