Beispiel #1
0
        public void AddedIOrderItemsAppearInItemsProperty()
        {
            var order = new Order();
            var item  = new MocKOrderItem();

            order.Add(item);
            Assert.Contains(item, order.Items);
        }
Beispiel #2
0
        public void RemovedIOrderItemsDoesNotAppearInItemsProperty()
        {
            var order = new Order();
            var item  = new MocKOrderItem();

            order.Add(item);
            order.Remove(item);
            Assert.DoesNotContain(item, order.Items);
        }