コード例 #1
0
        public void CanMakeBreakfast()
        {
            var eggs       = Enumerable.Range(0, 6).Select(n => new Egg()).ToList();
            var spam       = Enumerable.Range(0, 12).Select(n => new Spam()).ToList();
            var totalItems = eggs.Count + spam.Count;
            var breakfast  = new Breakfast();

            breakfast.Make(spam, eggs);

            Assert.IsNotNull(breakfast);
            Assert.AreEqual(totalItems, breakfast.Items.Count);
        }