arcus-azure / arcus-azure/arcus.testing

✨ Add `AssertDate` introduce date assertions

Open
#156 0 comments 0 reactions 0 assignees View on GitHub
area:assert nice-to-have triage
Dominant language
C#
Stars
9
Forks
6
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the repository’s existing assertion APIs and the linked Date.fs implementation for date comparison behavior. Define the supported date measurement margins and whether an in-range assertion is included, then add the AssertDate functionality and tests covering those decisions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.