diff --git a/Geekbot.net/Geekbot.net.csproj b/Geekbot.net/Geekbot.net.csproj index 405c17e..9c5c5c7 100755 --- a/Geekbot.net/Geekbot.net.csproj +++ b/Geekbot.net/Geekbot.net.csproj @@ -94,6 +94,9 @@ PreserveNewest + + Always + diff --git a/Tests/Lib/Localization/TranslationGuildContext.test.cs b/Tests/Lib/Localization/TranslationGuildContext.test.cs index 90f1446..aeea0e1 100644 --- a/Tests/Lib/Localization/TranslationGuildContext.test.cs +++ b/Tests/Lib/Localization/TranslationGuildContext.test.cs @@ -48,22 +48,22 @@ namespace Tests.Lib.Localization { var translationHandlerMock = new Mock(MockBehavior.Loose); translationHandlerMock - .Setup(thm => thm.GetStrings("EN", "dateTime", "Days")) - .Returns(new List {{"day"}, {"days"}}); + .Setup(thm => thm.GetString("EN", "dateTime", "Days")) + .Returns("day|days"); translationHandlerMock - .Setup(thm => thm.GetStrings("EN", "dateTime", "Hours")) - .Returns(new List {{"hour"}, {"hours"}}); + .Setup(thm => thm.GetString("EN", "dateTime", "Hours")) + .Returns("hour|hours"); translationHandlerMock - .Setup(thm => thm.GetStrings("EN", "dateTime", "Minutes")) - .Returns(new List {{"minute"}, {"minutes"}}); + .Setup(thm => thm.GetString("EN", "dateTime", "Minutes")) + .Returns("minute|minutes"); translationHandlerMock - .Setup(thm => thm.GetStrings("EN", "dateTime", "Seconds")) - .Returns(new List {{"second"}, {"seconds"}}); + .Setup(thm => thm.GetString("EN", "dateTime", "Seconds")) + .Returns("second|seconds"); translationHandlerMock - .Setup(thm => thm.GetStrings("EN", "dateTime", "And")) - .Returns(new List {{"and"}}); + .Setup(thm => thm.GetString("EN", "dateTime", "And")) + .Returns("and"); - var context = new TranslationGuildContext(translationHandlerMock.Object, "EN", new Dictionary>()); + var context = new TranslationGuildContext(translationHandlerMock.Object, "EN", new Dictionary()); var result = context.FormatDateTimeAsRemaining(testData.DateTime); Assert.Equal(result, testData.Expected); }