public void ReturnCoinsButtonReturnsExactCoinsTheCustomerEntered() { VendingMachine.InsertCoin("Quarter"); VendingMachine.InsertCoin("Quarter"); VendingMachine.InsertCoin("Nickle"); VendingMachine.InsertCoin("Dime"); VendingMachine.InsertCoin("Dime"); VendingMachine.InsertCoin("Quarter"); VendingMachine.ReturnChangeButtonPressed(); var coinsReturned = VendingMachine.GetCoinsInReturnSlot(); var NumberOfQuarters = coinsReturned.Where(x => x == "Quarter").Count(); var NumberOfDimes = coinsReturned.Where(x => x == "Dime").Count(); var NumberOfNickles = coinsReturned.Where(x => x == "Nickle").Count(); Assert.AreEqual(NumberOfQuarters, 3); Assert.AreEqual(NumberOfDimes, 2); Assert.AreEqual(NumberOfNickles, 1); }