Exemplo n.º 1
0
        public void Aged_Brie_Higthest_Quality()
        {
            var Items = new SpecialItem(new AgedBrieToken(), 10, 50);

            Items.Update();
            Assert.AreEqual("Aged Brie", Items.Name);
            Assert.AreEqual(9, Items.SellIn);
            Assert.AreEqual(50, Items.Quality);
            Items.Update();
            Assert.AreEqual(8, Items.SellIn);
            Assert.AreEqual(50, Items.Quality);
        }
Exemplo n.º 2
0
        public void Aged_Brie()
        {
            var Items = new SpecialItem(new AgedBrieToken(), 10, 1);

            Items.Update();
            Assert.AreEqual("Aged Brie", Items.Name);
            Assert.AreEqual(9, Items.SellIn);
            Assert.AreEqual(2, Items.Quality);
            Items.Update();
            Assert.AreEqual(8, Items.SellIn);
            Assert.AreEqual(3, Items.Quality);
        }
Exemplo n.º 3
0
        public void Aged_Brie_outdated()
        {
            var Items = new SpecialItem(new AgedBrieToken(), 0, 2);

            Items.Update();
            Assert.AreEqual("Aged Brie", Items.Name);
            Assert.AreEqual(-1, Items.SellIn);
            Assert.AreEqual(4, Items.Quality);
        }
Exemplo n.º 4
0
        public void Backstage_outdated()
        {
            var Items = new SpecialItem(new BackstageToken(), -1, 50);

            Items.Update();
            Assert.AreEqual("Backstage passes to a TAFKAL80ETC concert", Items.Name);
            Assert.AreEqual(-2, Items.SellIn);
            Assert.AreEqual(0, Items.Quality);
        }
Exemplo n.º 5
0
        public void Backstage_Close_To_Date()
        {
            var Items = new SpecialItem(new BackstageToken(), 3, 30);

            Items.Update();
            Assert.AreEqual("Backstage passes to a TAFKAL80ETC concert", Items.Name);
            Assert.AreEqual(2, Items.SellIn);
            Assert.AreEqual(33, Items.Quality);
        }