Example #1
0
 public void OutOfCircleInSideRectangle1()
 {
     PointInsideCircleOutsideRectangle.Point point = new PointInsideCircleOutsideRectangle.Point();
     point.x = 4.9;
     point.y = -.05;
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideCircle(point), false);
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideRectangle(point), true);
 }
Example #2
0
 public void BothInside1()
 {
     PointInsideCircleOutsideRectangle.Point point = new PointInsideCircleOutsideRectangle.Point();
     point.x = 1;
     point.y = 1;
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideCircle(point), true);
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideRectangle(point), true);
 }
Example #3
0
 public void InSideCircleOutOfRectangle3()
 {
     PointInsideCircleOutsideRectangle.Point point = new PointInsideCircleOutsideRectangle.Point();
     point.x = 1;
     point.y = 3.5;
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideCircle(point), true);
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideRectangle(point), false);
 }
Example #4
0
 public void BothOutside3()
 {
     PointInsideCircleOutsideRectangle.Point point = new PointInsideCircleOutsideRectangle.Point();
     point.x = 3.8;
     point.y = -1.1;
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideCircle(point), false);
     Assert.AreEqual(PointInsideCircleOutsideRectangle.InsideRectangle(point), false);
 }