Esempio n. 1
0
        public void NotUsingFirstMovieTest()
        {
            var result = HashTableClass.InFlight(new int[] { 4, 3, 2 }, 5);

            Assert.True(result);
        }
Esempio n. 2
0
        public void NoMoviesTest()
        {
            var result = HashTableClass.InFlight(new int[] { }, 6);

            Assert.False(result);
        }
Esempio n. 3
0
        public void LotsOfPossiblePairsTest()
        {
            var result = HashTableClass.InFlight(new int[] { 1, 2, 3, 4, 5, 6 }, 7);

            Assert.True(result);
        }
Esempio n. 4
0
        public void TwoMoviesHalfFlightLengthTest()
        {
            var result = HashTableClass.InFlight(new int[] { 3, 8, 3 }, 6);

            Assert.True(result);
        }
Esempio n. 5
0
        public void OnlyOneMovieHalfFlightLenghtTest()
        {
            var result = HashTableClass.InFlight(new int[] { 3, 8 }, 6);

            Assert.False(result);
        }
Esempio n. 6
0
        public void LongFlightTest()
        {
            var result = HashTableClass.InFlight(new int[] { 2, 4 }, 6);

            Assert.True(result);
        }
Esempio n. 7
0
        public void ShortFlightTest()
        {
            var result = HashTableClass.InFlight(new int[] { 2, 4 }, 1);

            Assert.False(result);
        }