예제 #1
0
        public void Calculate_DoubleCoffe_ReturnCoffeCount()
        {
            var service = new NightService();
            var array   = new string[] { "1", "2", "3", "4", "2" };

            var output = service.CalculateOrder(array);

            Assert.Equal("steak, potato(x2), wine, cake", output);
        }
예제 #2
0
        public void Calculate_DuplicatedValues_ReturnDistinct()
        {
            var service = new NightService();
            var array   = new string[] { "1", "1", "2", "3" };

            var output = service.CalculateOrder(array);

            Assert.Equal("steak, potato, wine", output);
        }