示例#1
0
文件: GardenTest.cs 项目: rNdm74/C-
        public void GetAccountBalanceTest()
        {
            double gardenWidth  = 0F;
            double gardenHeight = 0F;
            string ownerName    = "Bob";
            Garden target       = new Garden(gardenWidth, gardenHeight, ownerName);

            target.AddCharge(15);
            target.AddCharge(5.5);
            target.AddCharge(10.25);

            double expected = 30.75;
            double actual;

            actual = target.GetAccountBalance();
            Assert.AreEqual(expected, actual);
        }