public bool Analize(
     RectangularEnvelope envelopeA,
     RectangularEnvelope envelopeB
     )
 {
     return(envelopeA.IsLessThan(envelopeB) ||
            envelopeB.IsLessThan(envelopeA));
 }
Example #2
0
        public void IsLessThan_BToA_Negative(
            double widthA,
            double heightA,
            double widthB,
            double heightB)
        {
            // Arrange
            var envelopeA = new RectangularEnvelope(widthA, heightA);
            var envelopeB = new RectangularEnvelope(widthB, heightB);

            // Act
            var actualValue = envelopeB.IsLessThan(envelopeA);

            // Assert
            Assert.False(actualValue);
        }
Example #3
0
        public void IsLessThan_AToB_Positive(
            double widthA,
            double heightA,
            double widthB,
            double heightB)
        {
            // Arrange
            var envelopeA = new RectangularEnvelope(widthA, heightA);
            var envelopeB = new RectangularEnvelope(widthB, heightB);

            // Act
            var actualValue = envelopeA.IsLessThan(envelopeB);

            // Assert
            Assert.True(actualValue);
        }