Beispiel #1
0
        public void ShowSmile_SmileNumber15_ReturnedDefaultMsg()
        {
            //arrange
            int    numberSmile = 15;
            string expected    = "Sorry, no suitable smile!";

            //act
            string actual = MoodSensor.ShowSmile(numberSmile);

            //assert
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void ShowSmile_SmileNumber4_ReturnedSmileNumber4()
        {
            //arrange
            int    numberSmile = 4;
            string expected    = ":‑X";

            //act
            string actual = MoodSensor.ShowSmile(numberSmile);

            //assert
            Assert.AreEqual(expected, actual);
        }