1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-01 12:34:40 +00:00

AirDateUtc comparison validation on Linux

This commit is contained in:
Mark McDowall 2015-01-10 12:11:10 -08:00
parent 4d19dddf88
commit 8aa523c6df

View file

@ -340,8 +340,8 @@ public void should_update_air_date_when_multiple_episodes_air_on_the_same_day()
Subject.RefreshEpisodeInfo(series, episodes);
_insertedEpisodes.First().AirDateUtc.Should().Be(episodes.First().AirDateUtc);
_insertedEpisodes.Last().AirDateUtc.Should().Be(episodes.First().AirDateUtc.Value.AddMinutes(series.Runtime));
_insertedEpisodes.First().AirDateUtc.Value.ToString("s").Should().Be(episodes.First().AirDateUtc.Value.ToString("s"));
_insertedEpisodes.Last().AirDateUtc.Value.ToString("s").Should().Be(episodes.First().AirDateUtc.Value.AddMinutes(series.Runtime).ToString("s"));
}
[Test]
@ -363,7 +363,7 @@ public void should_not_update_air_date_when_multiple_episodes_air_on_the_same_da
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"));
}
}
}