예제 #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());
        }
예제 #2
0
        public void CheckPennies_CheckForPennies_NumberOfPennies()
        {
            //Arrange
            ChangeMake change = new ChangeMake(1);

            //Act

            //Arrange
            Assert.AreEqual(1, change.GetPennies());
        }
예제 #3
0
        public void CheckDimes_CheckForDimes_NumberOfDimes()
        {
            //Arrange
            ChangeMake change = new ChangeMake(10);

            //Act

            //Arrange
            Assert.AreEqual(1, change.GetDimes());
        }
예제 #4
0
        public void CheckNickels_CheckForNickels_NumberOfNickels()
        {
            //Arrange
            ChangeMake change = new ChangeMake(5);

            //Act

            //Arrange
            Assert.AreEqual(1, change.GetNickels());
        }
예제 #5
0
        public void CheckQuarters_CheckForQuarters_NumberOfQuarters()
        {
            //Arrange
            ChangeMake change = new ChangeMake(25);

            //Act

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