Exemple #1
0
        public void ChangeTest()
        {
            // Arrange
            Catering   catering = new Catering();
            FileAccess file     = new FileAccess();

            file.LoadCateringItems(catering);
            decimal amount   = 10.00M;
            string  expected = "Your change is: 0 twenties, 1 tens, 0 fives, 0 ones, 0 quarters, 0 dimes, and 0 nickles. ";

            // Act
            string result = catering.Change(amount);

            // Assert
            Assert.AreEqual(expected, result);
        }