public bool Analize( RectangularEnvelope envelopeA, RectangularEnvelope envelopeB ) { return(envelopeA.IsLessThan(envelopeB) || envelopeB.IsLessThan(envelopeA)); }
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); }
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); }