Beispiel #1
0
        public void should_be_able_to_add_items_when_queue_is_empty()
        {
            var queue = new MockRepository().PartialMock<QueueBuffer>(1);

            queue.Expect(x => x.IsEmpty()).Return(false);
            queue.Expect(x => x.Put(null)).CallOriginalMethod(OriginalCallOptions.NoExpectation);

            queue.Put(new Flit());

            queue.Items.Count().Should().Be.EqualTo(1);
        }