Exemplo n.º 1
0
        public void PurchaseNotComplete()
        {
            //Arrange
            Product product      = new Candy();
            int     moneyPoolPot = 5;
            int     price        = 20;

            //Act
            bool result = product.PurchaseComplete(moneyPoolPot, price);

            //Assert
            Assert.False(result);
        }
Exemplo n.º 2
0
        public void PurchaseComplete()
        {
            //Arrange
            IProduct iProduct     = new Candy();
            int      moneyPoolPot = 5;
            int      price        = 4;

            //Act
            bool result = iProduct.PurchaseComplete(moneyPoolPot, price);

            //Assert
            Assert.True(result);
        }