public void IncreaseInValueAsItGetsOlder()
        {
            var quality = 5;
            var sellIn  = 0;

            var itemCollection = new List <Item> {
                _itemFactory.Create("Aged Brie", quality, sellIn)
            };

            var items = new Items(itemCollection);

            for (int i = 0; i < 5; i++)
            {
                _itemUpdater.Update(items);
                quality++;
                Assert.Equal(quality, items.First().Quality);
            }

            var assert = new zAssert();

            //assert.OnEachCycle().That(20).IsEqualTo(20).For(20).Assert();

            //assert.That(items.First().Quality).IsEqualTo(quality++).While(() => _itemUpdater.Update(items)).Runs().Times(50);
        }
Exemplo n.º 2
0
 public zCompositeAssert(zAssert assert)
 {
     _zAssert = assert;
 }