public void NotUsingFirstMovieTest() { var result = HashTableClass.InFlight(new int[] { 4, 3, 2 }, 5); Assert.True(result); }
public void NoMoviesTest() { var result = HashTableClass.InFlight(new int[] { }, 6); Assert.False(result); }
public void LotsOfPossiblePairsTest() { var result = HashTableClass.InFlight(new int[] { 1, 2, 3, 4, 5, 6 }, 7); Assert.True(result); }
public void TwoMoviesHalfFlightLengthTest() { var result = HashTableClass.InFlight(new int[] { 3, 8, 3 }, 6); Assert.True(result); }
public void OnlyOneMovieHalfFlightLenghtTest() { var result = HashTableClass.InFlight(new int[] { 3, 8 }, 6); Assert.False(result); }
public void LongFlightTest() { var result = HashTableClass.InFlight(new int[] { 2, 4 }, 6); Assert.True(result); }
public void ShortFlightTest() { var result = HashTableClass.InFlight(new int[] { 2, 4 }, 1); Assert.False(result); }