Пример #1
0
        public void TestEmptyColorBonus()
        {
            var s = new Logic.Stats();

            Assert.AreEqual(0, s.TotalNumEmptyColorBonuses);
            s.AddEmptyColorBonus();
            Assert.AreEqual(1, s.TotalNumEmptyColorBonuses);
        }
Пример #2
0
        public void TestEmptyColorBonusEventTriggered()
        {
            var  s         = new Logic.Stats();
            bool triggered = false;

            s.OnEmptyBonus += () => triggered = true;
            s.AddEmptyColorBonus();
            Assert.IsTrue(triggered);
        }