mirror of https://github.com/lidarr/Lidarr
Fix BasicRepository Tests when not on UTC
(cherry picked from commit 4f7dc94b94bda49443c28baefc592e7388bcf540)
This commit is contained in:
parent
60d1a7fbc4
commit
cb8482921f
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using FizzWare.NBuilder;
|
using FizzWare.NBuilder;
|
||||||
|
@ -18,6 +18,12 @@ namespace NzbDrone.Core.Test.Datastore
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void 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>
|
_basicList = Builder<ScheduledTask>
|
||||||
.CreateListOfSize(5)
|
.CreateListOfSize(5)
|
||||||
.All()
|
.All()
|
||||||
|
|
Loading…
Reference in New Issue