mirror of https://github.com/Radarr/Radarr
AirDateUtc comparison validation on Linux
This commit is contained in:
parent
4d19dddf88
commit
8aa523c6df
|
@ -340,8 +340,8 @@ namespace NzbDrone.Core.Test.TvTests
|
||||||
|
|
||||||
Subject.RefreshEpisodeInfo(series, episodes);
|
Subject.RefreshEpisodeInfo(series, episodes);
|
||||||
|
|
||||||
_insertedEpisodes.First().AirDateUtc.Should().Be(episodes.First().AirDateUtc);
|
_insertedEpisodes.First().AirDateUtc.Value.ToString("s").Should().Be(episodes.First().AirDateUtc.Value.ToString("s"));
|
||||||
_insertedEpisodes.Last().AirDateUtc.Should().Be(episodes.First().AirDateUtc.Value.AddMinutes(series.Runtime));
|
_insertedEpisodes.Last().AirDateUtc.Value.ToString("s").Should().Be(episodes.First().AirDateUtc.Value.AddMinutes(series.Runtime).ToString("s"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
@ -363,7 +363,7 @@ namespace NzbDrone.Core.Test.TvTests
|
||||||
|
|
||||||
Subject.RefreshEpisodeInfo(series, episodes);
|
Subject.RefreshEpisodeInfo(series, episodes);
|
||||||
|
|
||||||
_insertedEpisodes.Should().OnlyContain(e => e.AirDateUtc == episodes.First().AirDateUtc);
|
_insertedEpisodes.Should().OnlyContain(e => e.AirDateUtc.Value.ToString("s") == episodes.First().AirDateUtc.Value.ToString("s"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue