Esempio n. 1
0
        public void CountSmileys_ThreeValidFaces_ShouldReturnCorrectNumber()
        {
            //arrange
            var input    = new[] { ";D", ":-(", ":-)", ";~)" };
            var expected = 3;

            //act
            var result = SmileysCounter.CountSmileys(input);

            //assert
            result.Should().Be(expected);
        }
Esempio n. 2
0
        public void CountSmileys_OneValidFace_ShouldReturnCorrectNumber()
        {
            //arrange
            var input    = new[] { ";]", ":[", ";*", ":$", ";-D" };
            var expected = 1;

            //act
            var result = SmileysCounter.CountSmileys(input);

            //assert
            result.Should().Be(expected);
        }
Esempio n. 3
0
        public void CountSmileys_TwoValidFaces_ShouldReturnCorrectNumber()
        {
            //arrange
            var input    = new [] { ":)", ";(", ";}", ":-D" };
            var expected = 2;

            //act
            var result = SmileysCounter.CountSmileys(input);

            //assert
            result.Should().Be(expected);
        }