コード例 #1
0
        public void CalculatePrice_ShouldReturn_16_When_b1b1()
        {
            BuyService    target = new BuyService();
            List <string> card   = new List <string>()
            {
                "b1", "b1"
            };
            float expected = 16F;
            float actual;

            actual = target.CalculatePrice(card);
            actual.Should().Be(expected);
        }
コード例 #2
0
        public void CalculatePrice_ShouldReturn_51dot20_When_b1b2b2b3b3b4b5()
        {
            BuyService    target = new BuyService();
            List <string> card   = new List <string>()
            {
                "b1", "b1", "b2", "b2", "b3", "b3", "b4", "b5"
            };
            float expected = 51.2F;
            float actual;

            actual = target.CalculatePrice(card);
            actual.Should().Be(expected);
        }