Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }