public void Test_dataFilterQuirkyBeacon_SetMode() { // Arrange dataFilterQuirkyBeacon d = new dataFilterQuirkyBeacon(); // Act d.setMode(true); // Assert Assert.IsTrue(d.getMode()); }
public void Test_dataFilterQuirkyBeacon_ScrambleLargeMode() { // Arrange dataFilterQuirkyBeacon d = new dataFilterQuirkyBeacon(); 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_dataFilterQuirkyBeacon_FilterLargeMode() { // Arrange dataFilterQuirkyBeacon d = new dataFilterQuirkyBeacon(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); }