public void TestGetEqualNumbersSubsequence_NullSequence()
        {
            List <int> numbers = null;

            SequenceFinder finder = new SequenceFinder();
            List <int>     result = finder.GetEqualNumbersSubsequence(numbers);
        }
        public void TestGetEqualNumbersSubsequence_NullSequence()
        {
            List<int> numbers = null;

            SequenceFinder finder = new SequenceFinder();
            List<int> result = finder.GetEqualNumbersSubsequence(numbers);
        }
        public void TestGetEqualNumbersSubsequence_SequenceWithNoNumbers()
        {
            List <int> numbers  = new List <int>();
            List <int> expected = new List <int>();

            SequenceFinder finder = new SequenceFinder();
            List <int>     result = finder.GetEqualNumbersSubsequence(numbers);

            CollectionAssert.AreEqual(expected, result);
        }
        public void TestGetEqualNumbersSubsequence_SequenceInTheMiddleOfTheList()
        {
            List<int> numbers = new List<int>() { 1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 5, 6 };
            List<int> expected = new List<int>() { 3, 3, 3, 3, 3 };

            SequenceFinder finder = new SequenceFinder();
            List<int> result = finder.GetEqualNumbersSubsequence(numbers);

            CollectionAssert.AreEqual(expected, result);
        }
        public void TestGetEqualNumbersSubsequence_SameNumbersInTheEntireSequence()
        {
            List<int> numbers = new List<int>() { 3, 3, 3, 3, 3 };
            List<int> expected = new List<int>() { 3, 3, 3, 3, 3 };

            SequenceFinder finder = new SequenceFinder();
            List<int> result = finder.GetEqualNumbersSubsequence(numbers);

            CollectionAssert.AreEqual(expected, result);
        }
        public void TestGetEqualNumbersSubsequence_SameNumbersInTheEntireSequence()
        {
            List <int> numbers = new List <int>()
            {
                3, 3, 3, 3, 3
            };
            List <int> expected = new List <int>()
            {
                3, 3, 3, 3, 3
            };

            SequenceFinder finder = new SequenceFinder();
            List <int>     result = finder.GetEqualNumbersSubsequence(numbers);

            CollectionAssert.AreEqual(expected, result);
        }
        public void TestGetEqualNumbersSubsequence_SequenceInTheMiddleOfTheList()
        {
            List <int> numbers = new List <int>()
            {
                1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 5, 6
            };
            List <int> expected = new List <int>()
            {
                3, 3, 3, 3, 3
            };

            SequenceFinder finder = new SequenceFinder();
            List <int>     result = finder.GetEqualNumbersSubsequence(numbers);

            CollectionAssert.AreEqual(expected, result);
        }
        public void TestGetEqualNumbersSubsequence_SequenceWithNoNumbers()
        {
            List<int> numbers = new List<int>();
            List<int> expected = new List<int>();

            SequenceFinder finder = new SequenceFinder();
            List<int> result = finder.GetEqualNumbersSubsequence(numbers);

            CollectionAssert.AreEqual(expected, result);
        }