diff --git a/tests/BB84.SAU.Infrastructure.Tests/Services/SteamApiServiceTests.GetAchievement.cs b/tests/BB84.SAU.Infrastructure.Tests/Services/SteamApiServiceTests.GetAchievement.cs index fc5746d..887080e 100644 --- a/tests/BB84.SAU.Infrastructure.Tests/Services/SteamApiServiceTests.GetAchievement.cs +++ b/tests/BB84.SAU.Infrastructure.Tests/Services/SteamApiServiceTests.GetAchievement.cs @@ -46,7 +46,7 @@ public void GetAchievementShouldReturnFalseWhenAchievementNotUnlocked() [TestCategory("Methods")] public void GetAchievementShouldReturnValuesWhenSteamWorksProviderReturnedValues() { - uint unlockTime = 946681200; + uint unlockTime = 0; bool achieved = true; SteamApiService service = CreateMockedService(); _steamWorksProviderMock.Setup(x => x.Init()).Returns(true); @@ -58,7 +58,7 @@ public void GetAchievementShouldReturnValuesWhenSteamWorksProviderReturnedValues (bool Achieved, DateTime? UnlockTime) result = service.GetAchievement(AchievementName); Assert.IsTrue(result.Achieved); - Assert.AreEqual(new DateTime(2000, 1, 1), result.UnlockTime); + Assert.AreEqual(DateTimeOffset.FromUnixTimeSeconds(unlockTime).LocalDateTime, result.UnlockTime); Assert.AreEqual(0, _loggerServiceMock.Invocations.Count); Assert.AreEqual(0, _notificationServiceMock.Invocations.Count); Assert.AreEqual(3, _steamWorksProviderMock.Invocations.Count);