public void Test_dataCutStrobeBeacon_FilterSmallMode() { // Arrange dataCutStrobeBeacon d = new dataCutStrobeBeacon(17); int[] testArray = new int[6] { 23, 28, 4, 20, 5, 58 }; int[] assertArray = new int[1] { 5 }; // Act d.scramble(testArray); int[] dFilter = d.filter(); // Assert CollectionAssert.AreEqual(dFilter, assertArray); }
public void Test_dataCutStrobeBeacon_FilterLargeMode() { // Arrange dataCutStrobeBeacon d = new dataCutStrobeBeacon(19); d.setMode(true); int[] testArray = new int[6] { 23, 28, 4, 20, 5, 58 }; int[] assertArray = new int[3] { 23, 28, 20 }; // Act d.scramble(testArray); int[] dFilter = d.filter(); // Assert CollectionAssert.AreEqual(dFilter, assertArray); }