コード例 #1
0
        public void Sell_budget300_cost500_result800()
        {
            // arrange
            int budget   = 300;
            int cost     = 500;
            int expected = 800;

            // act
            Cashbox cashbox = new Cashbox(budget);

            cashbox.Sell(cost);
            int actual = cashbox.Budget;

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