public void Test_dataFilterBeacon_SetMode() { // Arrange dataFilterBeacon d = new dataFilterBeacon(); // Act d.setMode(true); // Assert Assert.IsTrue(d.getMode()); }
public void Test_dataFilterBeacon_ScrambleLargeMode() { // Arrange dataFilterBeacon d = new dataFilterBeacon(); d.setMode(true); int[] testArray = new int[6] { 29, 14, 34, 73, 5, 9 }; int[] assertArray = new int[6] { 29, 14, 73, 34, 9, 5 }; // Act int[] dScramble = d.scramble(testArray); // Assert CollectionAssert.AreEqual(dScramble, assertArray); }
public void Test_dataFilterBeacon_FilterLargeMode() { // Arrange dataFilterBeacon d = new dataFilterBeacon(41); d.setMode(true); int[] testArray = new int[7] { 59, 24, 37, 15, 63, 104, 2 }; int[] assertArray = new int[3] { 59, 63, 104 }; // Act d.scramble(testArray); int[] dFilter = d.filter(); // Assert CollectionAssert.AreEqual(dFilter, assertArray); }