public void Test_switchMode_dataFilterBeacon() { // Arrange uint[] seq = new uint[] { 1, 2, 3, 4, 5 }; uint prime = 3; dataFilterBeacon obj1, obj2, obj3; int[] expectedSignals1 = new int[] { 5, 2 }; int[] expectedSignals2 = new int[] { 5, 1 }; int[] expectedSignals3 = new int[] { 5, 2 }; // Act obj1 = new dataFilterBeacon(0, 0, prime, seq); obj2 = new dataFilterBeacon(1, 0, prime, seq); obj3 = new dataFilterBeacon(2, 0, prime, seq); obj1.switchOnOff(); obj2.switchOnOff(); obj3.switchOnOff(); obj1.switchMode(); obj2.switchMode(); obj3.switchMode(); int[] signals1 = obj1.filterSignal(); int[] signals2 = obj2.filterSignal(); int[] signals3 = obj3.filterSignal(); // Assert CollectionAssert.AreEqual(expectedSignals1, signals1); CollectionAssert.AreEqual(expectedSignals2, signals2); CollectionAssert.AreEqual(expectedSignals3, signals3); }