예제 #1
0
        public void fooItem()
        {
            var Items = new BasicItem("foo", 0, 0);

            Items.Update();
            Assert.AreEqual("foo", Items.Name);
            Assert.AreEqual(-1, Items.SellIn);
            Assert.AreEqual(0, Items.Quality);
        }
예제 #2
0
        public void fooItem_outdated()
        {
            var Items = new BasicItem("foo", -1, 1);

            Items.Update();
            Assert.AreEqual("foo", Items.Name);
            Assert.AreEqual(-2, Items.SellIn);
            Assert.AreEqual(0, Items.Quality);
        }