Exemplo n.º 1
0
        public void InputWithQuote_ShouldBeCountedCorrectly()
        {
            var result = new TextAnalyticsChallenge().ProcessInput("'To be, or not to be. That is the question.'");

            Assert.AreEqual("10, 30, 5, 2, 3, 6", result);
        }
Exemplo n.º 2
0
        public void InputWithRepeatedWords_ShouldBeCountedCorrectly()
        {
            var result = new TextAnalyticsChallenge().ProcessInput("Word word word.");

            Assert.AreEqual("3, 12, 1, 1, 4, 0", result);
        }
Exemplo n.º 3
0
        public void SkilleoSampleInput2_ShouldWorkAsExpected()
        {
            var result = new TextAnalyticsChallenge().ProcessInput("Skilleo is cool");

            Assert.AreEqual("3, 13, 0, 0, 2, 3", result);
        }
Exemplo n.º 4
0
        public void SkilleoSampleInput3_ShouldWorkAsExpected()
        {
            var result = new TextAnalyticsChallenge().ProcessInput("Donec sollicitudin molestie malesuada. Donec rutrum congue leo eget malesuada.");

            Assert.AreEqual("10, 67, 2, 2, 12, 6", result);
        }
Exemplo n.º 5
0
        public void SkilleoSampleInput1_ShouldWorkAsExpected()
        {
            var result = new TextAnalyticsChallenge().ProcessInput("Some small sample text!");

            Assert.AreEqual("4, 19, 1, 0, 4, 4", result);
        }