Esempio n. 1
0
        public void CheckBalance_Should_Return_Balance_Of_0()
        {
            Atm sut = new Atm();

            int actualBalance = sut.CheckBalance();

            Assert.Equal(0, actualBalance);
        }
Esempio n. 2
0
        public void Deposit_Should_Increase_Balance_by_50_Dollars()
        {
            Atm sut = new Atm(200);

            sut.Deposit();
            int actualBalance = sut.CheckBalance();

            Assert.Equal(250, actualBalance);
        }
Esempio n. 3
0
        public void Withdraw_Should_Reduce_Balance_by_10_Dollars()
        {
            Atm sut = new Atm(200);

            sut.Withdraw();
            int actualBalance = sut.CheckBalance();

            Assert.Equal(190, actualBalance);
        }
Esempio n. 4
0
        public void CheckBalance_Should_Return_Balance_Of_0()
        {
            // Arrange
            Atm underTest = new Atm();

            // Act
            int actualBalance = underTest.CheckBalance();

            // Assert
            Assert.Equal(0, actualBalance);
        }
Esempio n. 5
0
        public void Withdraw_Should_Reduce_Balance_by_10_Dollars()
        {
            // Arrange
            Atm underTest = new Atm(200);

            // Act
            underTest.Withdraw();
            int actualBalance = underTest.CheckBalance();

            // Assert
            Assert.Equal(190, actualBalance);
        }