示例#1
0
        public void EquipmentAddTest_Full()
        {
            Team c = new Team("C");

            Equipment equip1 = new Equipment("sittingCart");
            Equipment equip2 = new Equipment("ambulanceCart");
            Equipment equip3 = new Equipment("epipen");
            Equipment equip4 = new Equipment("transportStretcher");

            c.AddEquipment(equip1);
            c.AddEquipment(equip2);
            c.AddEquipment(equip3);
            Assert.IsFalse(c.AddEquipment(equip4));
        }
示例#2
0
        public void EquipmentAddTest()
        {
            Team c = new Team("C");

            Equipment equip1 = new Equipment("sittingCart");
            Equipment equip2 = new Equipment("ambulanceCart");
            Equipment equip3 = new Equipment("epipen");
            Equipment equip4 = new Equipment("transportStretcher");

            c.AddEquipment(equip1);
            c.AddEquipment(equip2);
            c.AddEquipment(equip3);
            Assert.AreEqual(c.getEquipmentCount(), 3);

            c.RemoveEquipment(equip1);
            Assert.AreEqual(c.getEquipmentCount(), 2);
        }