public void RfcDateTest_1() { RfcDate date = new RfcDate("20190921"); Assert.Equal(2019, date.RfcValue?.Year); Assert.Equal(9, date.RfcValue?.Month); Assert.Equal(21, date.RfcValue?.Day); }
public void RfcDateTest_4() { RfcDate date = new RfcDate("00000000"); Assert.Null(date.RfcValue); }
public void RfcDateTest_3() { RfcDate date = new RfcDate("20190921"); Assert.Equal("20190921", date.ToString()); }