public void two_hundred_and_twenth_five_degree_from_origin_spec()
        {
            Location l0 = new Location(0, 0);
              Location quadrant2 = new Location(-5, 5);
              Location quadrant1 = new Location(5, 0);
              float angle = l0.angle_between(quadrant2, quadrant1);

              Specify.That(Math.Round(angle, 5)).ShouldEqual(Math.Round((5 * Math.PI) / 4, 5));
        }
        public void two_hundred_and_seventy_degree_spec()
        {
            Location l0 = new Location(10, 10);
              Location l1 = new Location(5, 15);
              Location l2 = new Location(15, 15);
              float angle = l0.angle_between(l1, l2);

              Specify.That(Math.Round(angle, 5)).ShouldEqual(Math.Round((3 * Math.PI) / 2, 5));
        }
        public void two_angles_per_quadrant_test()
        {
            Location l0 = new Location(0, 0);
              Location quadrant1 = new Location(1, 0);
              Location loc;

              loc = new Location(-2, -1);
              Specify.That(Math.Round(l0.angle_between(quadrant1, loc), 5)).ShouldEqual(3.60524);

              loc = new Location(-1, -2);
              Specify.That(Math.Round(l0.angle_between(quadrant1, loc), 5)).ShouldEqual(4.24874);

              loc = new Location(1, -2);
              Specify.That(Math.Round(l0.angle_between(quadrant1, loc), 5)).ShouldEqual(5.17604);

              loc = new Location(2, -1);
              Specify.That(Math.Round(l0.angle_between(quadrant1, loc), 5)).ShouldEqual(5.81954);
        }
 public void simple_fourty_five_degree_spec()
 {
     Location l0 = new Location(0, 0);
       Location l1 = new Location(5, 0);
       Location l2 = new Location(5, 5);
       float angle = l0.angle_between(l1, l2);
       Specify.That(Math.Round(angle, 5)).ShouldEqual(Math.Round(Math.PI / 4, 5));
 }
        public void one_hundered_and_eighty_degree_from_origin_spec()
        {
            Location l0 = new Location(0, 0);
              Location l1 = new Location(5, 0);
              Location l2 = new Location(-5, 0);
              float angle = l0.angle_between(l1, l2);

              Specify.That(Math.Round(angle, 5)).ShouldEqual(Math.Round(Math.PI, 5));
        }
        public void ninety_degree_from_origin_spec()
        {
            Location l0 = new Location(0, 0);
              Location quadrant2 = new Location(-5, 5);
              Location quadrant1 = new Location(5, 5);
              float angle = l0.angle_between(quadrant1, quadrant2);

              Specify.That(Math.Round(angle, 5)).ShouldEqual(Math.Round(Math.PI / 2, 5));
        }