Esempio n. 1
0
        public void AzimuthGoodConversions()
        {
            AzimuthConverter cvt;

            cvt = new AzimuthConverter(_testAzimuthValue);
            Assert.AreEqual(_testAzimuthDegrees, cvt.Degrees);
            Assert.AreEqual(_testMinutes, cvt.Minutes);
            Assert.AreEqual(_testSeconds, cvt.Seconds);
            string result = cvt.ToString();

            Assert.AreEqual(_testAzimuthString, result);
        }
Esempio n. 2
0
        public void AzimuthRangeLowSeconds()
        {
            int temp = _testSeconds - 70;

            AzimuthConverter cvt = new AzimuthConverter(_testDegrees, _testMinutes, temp);
        }
Esempio n. 3
0
        public void AzimuthRangeLowDegrees()
        {
            int temp = _testAzimuthDegrees * -1;

            AzimuthConverter cvt = new AzimuthConverter(temp, _testMinutes, _testSeconds);
        }
Esempio n. 4
0
        public void AzimuthRangeHighMinutes()
        {
            int temp = _testMinutes + 70;

            AzimuthConverter cvt = new AzimuthConverter(_testDegrees, temp, _testSeconds);
        }
Esempio n. 5
0
 public void AzimuthRangeLowConversion()
 {
     AzimuthConverter cvt = new AzimuthConverter(-0.1m);
 }
Esempio n. 6
0
 public void AzimuthRangeHighConversion()
 {
     AzimuthConverter cvt = new AzimuthConverter(360.1m);
 }