public void ProductIsInvalid_ThrowsArgumentException() { // Arrange var product = ""; var date = new DateTime(2017, 9, 13); // Act -> Assert Assert.Throws <ArgumentException>(() => { DailyLeaderboardsWorker.GetDailyLeaderboardName(product, date); }); }
public void ReturnsDailyLeaderboardName() { // Arrange var product = "classic"; var date = new DateTime(2017, 9, 13); // Act var name = DailyLeaderboardsWorker.GetDailyLeaderboardName(product, date); // Assert Assert.Equal("13/9/2017_PROD", name); }
public void ProductIsAmplified_ReturnsNameStartingWithDLC() { // Arrange var product = "amplified"; var date = new DateTime(2017, 9, 13); // Act var name = DailyLeaderboardsWorker.GetDailyLeaderboardName(product, date); // Assert Assert.Equal("DLC 13/9/2017_PROD", name); }