New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DateTime
/TimeSpan
support for inequality tolerance
#4600
Comments
My workaround, using the above example: Assert.That(LastDateAccessed, Is.InRange(beforeUpdate - TimeSpan.FromSeconds(1), beforeUpdate + TimeSpan.FromSeconds(1))); But it's less elegant or intuitive. |
@RenderMichael The Feel free to work on this to make it more consistent with |
Opened PR #4618 |
@RenderMichael Can you please check this package https://www.myget.org/feed/nunit/package/nuget/NUnit/4.1.0-alpha.0.1 |
@RenderMichael Seems this one needs documentation too, for the constraints that now have got them. Can you add that? |
@OsirisTerje opened nunit/docs#907, let me know if there's something else you had in mind as I've never contributed docs before. |
It would be nice if the following code worked:
For consistency, this should probably be done on all constraints that extend
ComparisonConstraint
.I am willing to take up the task. I just want to make sure this is kind of change would be accepted.
The text was updated successfully, but these errors were encountered: