예제 #1
0
        public void AddToList_ReturnsList_List()
        {
            int        testEntry = 1;
            Bread      newBread  = new Bread(testEntry);
            List <int> testList  = new List <int> {
                1
            };
            List <int> result = newBread.AddToList();

            CollectionAssert.AreEqual(testList, result);
        }
예제 #2
0
        public void CalculateCost_ReturnsCost_Int()
        {
            int   testBread = 7;
            Bread newBread  = new Bread(testBread);

            newBread.AddToList();
            int testCost = 20;
            int result   = newBread.CalculateCost();

            Assert.AreEqual(testCost, result);
        }