Example #1
0
        public void TestJeuCafePlus()
        {
            var tmp = Armoire.GetInstance().GetJeuCafe();

            Armoire.GetInstance().SetJeuCafe(5);
            Assert.AreEqual(Armoire.GetInstance().GetJeuCafe(), tmp + 5, "Cofe sets does not increment");
        }
Example #2
0
        public void TestServiettesPlus()
        {
            var tmp = Armoire.GetInstance().GetServiettes();

            Armoire.GetInstance().SetServiettes(5);
            Assert.AreEqual(Armoire.GetInstance().GetServiettes(), tmp + 5, "Towels does not increment");
        }
Example #3
0
        public void TestJeuCafeMoin()
        {
            var tmp = Armoire.GetInstance().GetJeuCafe();

            Armoire.GetInstance().SetJeuCafe(-5);
            Assert.AreEqual(Armoire.GetInstance().GetJeuCafe(), tmp - 5, "Cofe sets does not decrement");
        }
Example #4
0
        public void TestVerresPlus()
        {
            var tmp = Armoire.GetInstance().GetVerres();

            Armoire.GetInstance().SetVerres(5);
            Assert.AreEqual(Armoire.GetInstance().GetVerres(), tmp + 5, "Glasses does not increment");
        }
Example #5
0
        public void TestVerresMoin()
        {
            var tmp = Armoire.GetInstance().GetVerres();

            Armoire.GetInstance().SetVerres(-5);
            Assert.AreEqual(Armoire.GetInstance().GetVerres(), tmp - 5, "Glasses does not decrement");
        }
Example #6
0
        public void TestCouvertsMoin()
        {
            var tmp = Armoire.GetInstance().GetCouverts();

            Armoire.GetInstance().SetCouverts(-5);
            Assert.AreEqual(Armoire.GetInstance().GetCouverts(), tmp - 5, "Couverts does not decrement");
        }
Example #7
0
        public void TestCouvertsPlus()
        {
            var tmp = Armoire.GetInstance().GetCouverts();

            Armoire.GetInstance().SetCouverts(5);
            Assert.AreEqual(Armoire.GetInstance().GetCouverts(), tmp + 5, "Couverts does not increment");
        }
Example #8
0
        public void TestAssiettesMoin()
        {
            var tmp = Armoire.GetInstance().GetAssiettes();

            Armoire.GetInstance().SetAssiettes(-5);
            Assert.AreEqual(Armoire.GetInstance().GetAssiettes(), tmp - 5, "Plates does not decrement");
        }
Example #9
0
        public void TestNapesMoin()
        {
            var tmp = Armoire.GetInstance().GetNapes();

            Armoire.GetInstance().SetNapes(-5);
            Assert.AreEqual(Armoire.GetInstance().GetNapes(), tmp - 5, "Tablecloth does not decrement");
        }
Example #10
0
        public void TestNapesPlus()
        {
            var tmp = Armoire.GetInstance().GetNapes();

            Armoire.GetInstance().SetNapes(5);
            Assert.AreEqual(Armoire.GetInstance().GetNapes(), tmp + 5, "Tablecloth does not increment");
        }
Example #11
0
 public void TestSingletonCuisine()
 {
     Assert.AreEqual(Armoire.GetInstance(5, 5, 5, 5, 5, 5), Armoire.GetInstance(), "Armoire is not a singleton");
 }