public void Test_dataFilterBeacon_ChargeFns() { // Arrange dataFilterBeacon bc = new dataFilterBeacon(); int[] testArray = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; int[] signalArray = new int[11]; int[] assertArray = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0 }; // Act bc.setSeq(testArray); for (int i = 0; i < signalArray.Length; i++) { signalArray[i] = bc.signal(); } bc.recharge(5); // Assert Assert.AreEqual(bc.getCharge(), 5); CollectionAssert.AreEqual(signalArray, assertArray); }