public void Test_IsCool_InputNotMultipleOfEleven_ExpectedReturnFalse()
        {
            var cool   = new Cool();
            var actual = cool.IsCool(-21);

            Assert.AreEqual(false, actual);
        }
        public void Test_IsCool_InputMultipleOfEleven_ExpectedReturnTrue()
        {
            var cool   = new Cool();
            var actual = cool.IsCool(22);

            Assert.AreEqual(true, actual);
        }
Esempio n. 3
0
    //Updates which image should have transparency set to full or set to null
    void UpdateActiveWeapon()
    {
        if (Cooldowns == null)
        {
            return;
        }

        foreach (WeaponCooldown Cool in Cooldowns)
        {
            Cool.ImageTransparency(WeaponIndex);
        }
    }
Esempio n. 4
0
    //Updating references for UI, making sure that they have the correct weapon
    void UpdateCooldown(int weaponInt, Weapon Gun)
    {
        if (Cooldowns == null)
        {
            return;
        }

        foreach (WeaponCooldown Cool in Cooldowns)
        {
            Cool.InitializeWeapon(this, weaponInt);
        }
    }
Esempio n. 5
0
 public override void Uninstall(System.Collections.IDictionary savedState)
 {
     Cool.DoStuff();
 }