Example #1
0
        public void ValidateIsLonDegreesTest90()
        {
            string  testInput         = "90";
            decimal expectedOutResult = 90.0m;
            bool    expectedResult    = true;

            bool actualResult = CoordinateBase.ValidateIsLonDegrees(testInput, out decimal actualOutResult);

            Assert.AreEqual(expectedResult, actualResult);
            Assert.AreEqual(expectedOutResult, actualOutResult);
        }
Example #2
0
        public void ValidateLongitude()
        {
            bool    expectedresult = true;
            decimal expectedOutput = -123m;

            string strLongitude = "-123";

            bool actualResult = CoordinateBase.ValidateIsLonDegrees(strLongitude, out decimal actualOutput);

            Assert.AreEqual(expectedresult, actualResult);
            Assert.AreEqual(expectedOutput, actualOutput);
        }