public void CompareEnvelopesTest(double height1, double width1, double height2, double width2, CompareResult expected)
        {
            //Arrange
            Envelope          first    = new Envelope(height1, width1);
            Envelope          second   = new Envelope(height2, width2);
            EnvelopesAnalyser analyser = new EnvelopesAnalyser();

            //Act
            analyser.CompareEnvelopes(first, second);

            //Assert
            Assert.AreEqual(expected, analyser.CompareEnvelopes(first, second));
        }
        private void ShowComparedResult(double[] numArr)
        {
            int MultipleOfFour;

            for (MultipleOfFour = 0; numArr.Length - MultipleOfFour >= FOUR_COUNT; MultipleOfFour += FOUR_COUNT)
            {
                _consoleViewer.ShowMessage(
                    analyser.CompareEnvelopes(
                        new Envelope(numArr[0 + MultipleOfFour], numArr[1 + MultipleOfFour]),
                        new Envelope(numArr[TWO_COUNT + MultipleOfFour], numArr[THREE_COUNT + MultipleOfFour])));
            }
            if (numArr.Length > MultipleOfFour)
            {
                _consoleViewer.ShowMessage(EXTRA_NUMBERS_LEFT);

                for (int i = 0; i < numArr.Length - MultipleOfFour; i++)
                {
                    _consoleViewer.ShowMessage(numArr[MultipleOfFour + i].ToString());
                }
            }
        }
        public void Insert_SecondNull_CompareResultAreEmptyExpected()
        {
            //Arrange
            Envelope          first    = new Envelope(10.2, 15.6);
            Envelope          second   = null;
            EnvelopesAnalyser analyser = new EnvelopesAnalyser();
            CompareResult     expected = CompareResult.AreEmpty;
            CompareResult     result;

            //Act
            result = analyser.CompareEnvelopes(first, second);

            //Assert
            Assert.AreEqual(expected, result);
        }