mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Update FluentAssertions
(cherry picked from commit 951a9ade00d7c9105f03608cb598450d706b826f)
This commit is contained in:
@@ -13,6 +13,7 @@ namespace NzbDrone.Core.Test.Datastore
|
||||
[TestFixture]
|
||||
public class BasicRepositoryFixture : DbTest<BasicRepository<ScheduledTask>, ScheduledTask>
|
||||
{
|
||||
private readonly TimeSpan _dateTimePrecision = TimeSpan.FromMilliseconds(20);
|
||||
private List<ScheduledTask> _basicList;
|
||||
|
||||
[SetUp]
|
||||
@@ -20,7 +21,7 @@ namespace NzbDrone.Core.Test.Datastore
|
||||
{
|
||||
AssertionOptions.AssertEquivalencyUsing(options =>
|
||||
{
|
||||
options.Using<DateTime>(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation.ToUniversalTime())).WhenTypeIs<DateTime>();
|
||||
options.Using<DateTime>(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation.ToUniversalTime(), _dateTimePrecision)).WhenTypeIs<DateTime>();
|
||||
return options;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user