Esempio n. 1
0
        public void SimpleTestSlot()
        {
            var res = new GameTransMeters(10);

            res.Report(10, 20);

            Assert.AreEqual(0, res.balanceAfterTransaction(1));
            Assert.AreEqual(20, res.balanceAfterTransaction(0));
        }
Esempio n. 2
0
        public void bsda()
        {
            var res = new GameTransMeters(10);

            res.Report(2, 0);

            Assert.AreEqual(8, res.balanceAfterTransaction(0));
        }
Esempio n. 3
0
        public void SimpleTestTavlanBingo()
        {
            var res = new GameTransMeters(10);

            res.Report(10, 20);
            res.Report(10, 0);

            Assert.AreEqual(0, res.balanceAfterTransaction(1), "should have no remaining balance since it has been cashed out due to limit hit");
            Assert.AreEqual(10, res.balanceAfterTransaction(0), "should have remaining balance (no limit hit)");
        }