Ejemplo n.º 1
0
        public void BearWithUpgradesCanTakeUpgrades()
        {
            Training t2 = new Training("Walnut Crushing", 27.99);

            testbear.AddTraining(t2);

            //assert
            Assert.NotNull(testbear.upgrades);
        }
Ejemplo n.º 2
0
        public void BearWithoutUpgradesCanTakeUpgrades()
        {
            Training t2 = new Training("Walnut Crushing", 27.99);

            Assert.Throws <NullReferenceException>(() => testbear2.AddTraining(t2));
        }