public void Rectangles_Seperate()
 {
     Assert.False(CollisionChecking.Rectangles(context.RectangleBase.X,
                                               context.RectangleBase.Y,
                                               context.RectangleBase.Width,
                                               context.RectangleBase.Height,
                                               context.RectangleSeperate.X,
                                               context.RectangleSeperate.Y,
                                               context.RectangleSeperate.Width,
                                               context.RectangleSeperate.Height));
 }
Beispiel #2
0
 public void Rectangles_Collide(Rectangle rectangle1, Rectangle rectangle2)
 {
     Assert.True(
         CollisionChecking.Rectangles(
             rectangle1.X,
             rectangle1.Y,
             rectangle1.Width,
             rectangle1.Height,
             rectangle2.X,
             rectangle2.Y,
             rectangle2.Width,
             rectangle2.Height
             )
         );
 }
Beispiel #3
0
 public void Rectangles_Seperate(Rectangle rectangle1, Rectangle rectangle2)
 {
     Assert.False(
         CollisionChecking.Rectangles(
             rectangle1.X,
             rectangle1.Y,
             rectangle1.Width,
             rectangle1.Height,
             rectangle2.X,
             rectangle2.Y,
             rectangle2.Width,
             rectangle2.Height
             )
         );
 }
Beispiel #4
0
 public void Rectangles_Collide()
 {
     Assert.True(
         CollisionChecking.Rectangles(
             rectangleBase.X,
             rectangleBase.Y,
             rectangleBase.Width,
             rectangleBase.Height,
             rectangleCollide.X,
             rectangleCollide.Y,
             rectangleCollide.Width,
             rectangleCollide.Height
             )
         );
 }