public void Tally_StartChange1000_return1000()
        {
            var total = _uut.Tally();

            Assert.That(total, Is.EqualTo("Cash in drawer: 1000\nTotal: 0\n\nCashPayment: 0\nNets: 0"));  // Er sat til at returnere en streng som bruges i Afstemningsvinduet
                                                                                                          // Hvorfor ser resultatet sådan ud Kalle?
        }
Exemple #2
0
 /// <summary>
 /// Tallies the sales for the CashRegister.
 /// </summary>
 /// <returns>The turnover for the sales done.</returns>
 public string Tally()
 {
     return(_paymentController.Tally());
 }
 public void Tally_ReturnsPaymentControllerTally_ReturnString()
 {
     Assert.AreEqual(_uut.Tally(), _paymentController.Tally());
 }