示例#1
0
        public void EarnStocks()
        {
            //Arrange
            double beginningBal      = 3500.00;
            double transactionAmount = 2000.00;

            Stocks sto = new Stocks();

            //Act
            sto.Buy(beginningBal);
            sto.Earn(transactionAmount);
            double actualBal = sto.GetShares;

            // assert
            Assert.AreEqual(actualBal, 5500.00);
        }