public void IsEnoughSpaceFor_Negative(float width1, float height1, float width2, float height2) { //arrange //act CommonEnvelope envelope1 = new Implementation.Rectangular(width1, height1); CommonEnvelope envelope2 = new Implementation.Rectangular(width2, height2); var actualSpaceCheck = envelope2.IsEnoughSpaceFor(envelope1); //assert Assert.False(actualSpaceCheck); }
public void IsEnoughSpaceFor_Positive(float width1, float height1, float width2, float height2) { //arrange //act CommonEnvelope envelope1 = new Implementation.Rectangular(width1, height1); CommonEnvelope envelope2 = new Implementation.Rectangular(width2, height2); var actual_space_check = envelope1.IsEnoughSpaceFor(envelope2); //assert Assert.True(actual_space_check); }