public void Must_parse_correctly(string headerValue, int year, int month, int day, int hour, int minute, int second) { DateHeader header = DateHeader.Parse(headerValue); Assert.That(header, Is.Not.Null); Assert.That(header.HttpDate.Year, Is.EqualTo(year)); Assert.That(header.HttpDate.Month, Is.EqualTo(month)); Assert.That(header.HttpDate.Day, Is.EqualTo(day)); Assert.That(header.HttpDate.Hour, Is.EqualTo(hour)); Assert.That(header.HttpDate.Minute, Is.EqualTo(minute)); Assert.That(header.HttpDate.Second, Is.EqualTo(second)); }
public void Must_not_result_in_header(string headerValue) { Assert.That(DateHeader.Parse(headerValue), Is.Null); }