Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 316 Bytes

File metadata and controls

14 lines (10 loc) · 316 Bytes

FluentAssertions for DateTime, DateTimeOffset and TimeSpan

Fluent syntax for

  • DateTime
  • DateTimeOffset
  • TimeSpan
  dateTime.Should().Be(3.February(2001).At(12, 0)));
  
  dateTimeOffset.Should().BeExactly(3.February(2001).WithOffset(1.Hours()));
  
  timeSpan.Should().BeGreaterThan(11.Hours());