Example #1
0
        public void TestMethod2()
        {
            double expected = 8138;

            coords1 = new UTMCoord(10, 'U', 481375, 5466221); //=49.3484, -123.2564
            coords2 = new DegMinSec(57, 19, 12, 49, 59, 33);  //=57.3200, 49.9925

            double actual = coords1.distance(coords2);

            Assert.AreEqual(expected, actual, 10, "You dun goofed");
        }
Example #2
0
        public void TestMethod3()
        {
            double expected = 8138;

            coords1 = new DecDeg(49.3484, -123.2564);
            coords2 = new DegMinSec(57, 19, 12, 49, 59, 33); //=57.3200, 49.9925

            double actual = coords1.distance(coords2);

            Assert.AreEqual(expected, actual, 10, "You dun goofed");
        }
Example #3
0
        public void TestMethod1()
        {
            double expected = 1769;

            coords1 = new DegDecMin(73, 4, 55, 55);          //=73.0667, 55.9167
            coords2 = new DegMinSec(57, 19, 12, 49, 59, 33); //=57.3200, 49.9925

            double actual = coords1.distance(coords2);

            Assert.AreEqual(expected, actual, 10, "You dun goofed");
        }
Example #4
0
 public void TestMethod5()
 {
     coords2 = new DegMinSec(57, 19, 33, 49, 59, 99999);
 }