mirror of
https://github.com/Readarr/Readarr
synced 2025-12-29 11:47:12 +01:00
Fix BasicRepository Tests when not on UTC
(cherry picked from commit 4f7dc94b94bda49443c28baefc592e7388bcf540)
This commit is contained in:
parent
220f917be2
commit
9a13790354
1 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FizzWare.NBuilder;
|
||||
|
|
@ -18,6 +18,12 @@ public class BasicRepositoryFixture : DbTest<BasicRepository<ScheduledTask>, Sch
|
|||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
AssertionOptions.AssertEquivalencyUsing(options =>
|
||||
{
|
||||
options.Using<DateTime>(ctx => ctx.Subject.Should().BeCloseTo(ctx.Expectation.ToUniversalTime())).WhenTypeIs<DateTime>();
|
||||
return options;
|
||||
});
|
||||
|
||||
_basicList = Builder<ScheduledTask>
|
||||
.CreateListOfSize(5)
|
||||
.All()
|
||||
|
|
|
|||
Loading…
Reference in a new issue