Skip to content

✨ Add AssertDate introduce date assertions #156

@stijnmoreels

Description

@stijnmoreels

Is your feature request related to a problem? Please describe.
When dealing with dates in tests, it can become a hussle as even the smallest millisecond is technical a 'different' date, while in many business scenarios it might be considered the same.

Describe the solution you'd like
Create an AssertDate test assertion that lets you compare dates with a fault margin of the date measurement (year, month, day, hour...). Also consider the 'contains' or 'InrRange' assertion to verify if a certain date falls between two dates.

Additional context
https://github.com/stijnmoreels/System/blob/main/Date.fs

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:assertAll issues related to comparing values in testsnice-to-haveAll issues related to 'nice to have' features, implicitly with a low-prio.triage

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions