Beispiel #1
0
        public void GetAll_CorrectLink_TweetsStringListFormat()
        {
            //Arrange
            string          username        = "******";
            TweetController tweetController = new TweetController();
            Regex           rx = new Regex(@"^\[.*\]$", RegexOptions.Compiled | RegexOptions.IgnoreCase);

            //Act
            var             result  = tweetController.GetAll(username).Result;
            MatchCollection matches = rx.Matches(result);

            //Assert
            Assert.IsInstanceOfType(result, typeof(string));
            Assert.IsTrue(matches.Count != 0);
        }