Пример #1
0
        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());
        }
Пример #2
0
        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");
        }