Exemplo n.º 1
0
        private void AssertStatement(string[] shows, float[] showCosts, float totalCost, int frequentPoints)
        {
            var showList = "";

            if (shows[0] != null)
            {
                for (var i = 0; i < shows.Length; i++)
                {
                    showList += "\t" + shows[i] + "\t" + showCosts[i] + "\n";
                }
            }
            Assert.Equal(
                "Rental Record for Joe\n" + showList + "Amount owed is " + totalCost + "\n" + "You earned " + frequentPoints + " frequent renter points", customer.Statement());
        }