public void Format_HandlesExampleTweetWithNumericAtEnd_True()
        {
            // Arrange
            var    exampleText = "Rider Alert:  Sounder south line # 1509";
            var    formatter   = new AlexaRequestFormatter(exampleText);
            string resultText  = null;

            // Act
            resultText = formatter.Format();

            // Assert
            Assert.Contains("15 09", resultText);
        }
        public void Format_HandlesExampleTweetWithUrlInMiddle()
        {
            // Arrange
            var    exampleText = "Rider Alert:  Sounder south line # 1509 (3:15p Sea dep) delayed approx. 10 mins departing https://t.co/kgvCgWJMLm, also I hate fornite";
            var    formatter   = new AlexaRequestFormatter(exampleText);
            string resultText  = null;

            // Act
            resultText = formatter.Format();

            // Assert
            Assert.DoesNotContain("https", resultText);
        }
        public void Format_HandlesHttpMention_True()
        {
            // Arrange
            var    exampleText = "Rider Alert:  Sounder south line # 1509 (3:15p Sea dep) delayed approx. 10 mins departing. http client is for rest calls";
            var    formatter   = new AlexaRequestFormatter(exampleText);
            string resultText  = null;

            // Act
            resultText = formatter.Format();

            // Assert
            Assert.Contains("http", resultText);
        }
        public void Format_HandlesOnlyUrl_True()
        {
            // Arrange
            var    exampleText = "TeeHee https://t.co/kgvCgWJMLm";
            var    formatter   = new AlexaRequestFormatter(exampleText);
            string resultText  = null;

            // Act
            resultText = formatter.Format();

            // Assert
            Assert.True(resultText.Length <= 7);
        }
        public void Format_HandlesExampleTweet_True()
        {
            // Arrange
            var    exampleText = "Rider Alert:  Sounder south line # 1509 (3:15p Sea dep)";
            var    formatter   = new AlexaRequestFormatter(exampleText);
            string resultText  = null;

            // Act
            resultText = formatter.Format();

            // Assert
            Assert.Contains("15 09", resultText);
            Assert.Contains("Seattle", resultText);
            Assert.Contains("departure)", resultText);
        }
        public void Format_HandlesExampleTweetWithUrlAtEnd_True()
        {
            // Arrange
            var    exampleText = "Rider Alert:  Sounder south line # 1509 (3:15p Sea dep) delayed approx. 10 mins departing https://t.co/kgvCgWJMLm";
            var    formatter   = new AlexaRequestFormatter(exampleText);
            string resultText  = null;

            // Act
            resultText = formatter.Format();

            // Assert
            Assert.Contains("15 09", resultText);
            Assert.Contains("Seattle", resultText);
            Assert.Contains("departure", resultText);
            Assert.DoesNotContain("http", resultText);
        }