Exemplo n.º 1
0
        public void GiveChange_Coins_NumberOfEach()
        {
            //Arrange
            ChangeMake change = new ChangeMake(41);

            //Act

            //Arrange
            Assert.AreEqual("Quarters: 1, Dimes: 1, Nickels: 1, Pennies: 1", change.GiveChange());
        }
Exemplo n.º 2
0
        public void CheckPennies_CheckForPennies_NumberOfPennies()
        {
            //Arrange
            ChangeMake change = new ChangeMake(1);

            //Act

            //Arrange
            Assert.AreEqual(1, change.GetPennies());
        }
Exemplo n.º 3
0
        public void CheckDimes_CheckForDimes_NumberOfDimes()
        {
            //Arrange
            ChangeMake change = new ChangeMake(10);

            //Act

            //Arrange
            Assert.AreEqual(1, change.GetDimes());
        }
Exemplo n.º 4
0
        public void CheckNickels_CheckForNickels_NumberOfNickels()
        {
            //Arrange
            ChangeMake change = new ChangeMake(5);

            //Act

            //Arrange
            Assert.AreEqual(1, change.GetNickels());
        }
Exemplo n.º 5
0
        public void CheckQuarters_CheckForQuarters_NumberOfQuarters()
        {
            //Arrange
            ChangeMake change = new ChangeMake(25);

            //Act

            //Arrange
            Assert.AreEqual(1, change.GetQuarters());
        }