public void rechargeTest() { Beacon testBeacon = new Beacon(); int[] testArray = new int[TEST_NUM] { 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 }; string signal; for (int i = 0; i < TEST_NUM; i++) { testBeacon.giveSignalInput(testArray); signal = testBeacon.emitSignal(); } Assert.AreEqual(testBeacon.emitSignal(), "0"); testBeacon.turnOn(); testBeacon.recharge(); Assert.AreEqual(testBeacon.emitSignal(), "WuBWuBWuBWuBWuBWuBWuBWuBWuBWuB"); }
// Pre: None // Post: Beacon may be fully charged and turned on. public void beaconRecharge() { BComposite.recharge(); }