public void Should_Return_An_Empty_Page_Token_When_One_Was_Not_Found_For_The_Platform() { var pageTokens = new PageTokens() .AddToken("twitch", "twitch token"); var pageToken = pageTokens.GetTokenOrEmpty("youtube"); Assert.True(pageToken.IsEmpty()); }
public void Should_Return_The_Page_Token_For_The_Platform() { var pageTokens = new PageTokens() .AddToken("youtube", "youtube token") .AddToken("twitch", "twitch token"); var pageToken = pageTokens.GetTokenOrEmpty("twitch"); Assert.AreEqual(pageToken.Token, "twitch token"); }