public void EllipseViewModel()
        {
            var ellipseVM = new EllipseViewModel();

            // can we create an element
            Assert.IsFalse(ellipseVM.CanCreateElement);

            ellipseVM.Distance = 1000.0;

            // test points
            ellipseVM.Point1 = new Point()
            {
                X = -119.8, Y = 34.4
            };
            // can we create an element
            //Assert.IsTrue(circleVM.CanCreateElement);

            Assert.AreEqual(ellipseVM.Point1Formatted, "34.4N 119.8W");

            // can't test manual input of of starting and ending points
            // they call methods that reference the ArcMap Application/Document objects
            // which is not available in unit testing

            // manual input of azimuth
            ellipseVM.AzimuthType   = DistanceAndDirectionLibrary.AzimuthTypes.Degrees;
            ellipseVM.AzimuthString = "90.1";
            Assert.AreEqual(90.1, ellipseVM.Azimuth);
        }
        public void EllipseViewModel_ThrowsException8()
        {
            var ellipseVM = new EllipseViewModel();

            ellipseVM.LineDistanceType  = DistanceTypes.Meters;
            ellipseVM.MajorAxisDistance = ellipseVM.MajorAxisLimit;
            ellipseVM.LineDistanceType  = DistanceTypes.Miles;
        }
        public void EllipseViewModel_ThrowsException7()
        {
            var ellipseVM = new EllipseViewModel();

            ellipseVM.MajorAxisDistance = ellipseVM.MajorAxisLimit + 1;
        }
        public void EllipseViewModel_ThrowsException6()
        {
            var ellipseVM = new EllipseViewModel();

            ellipseVM.Azimuth = -1;
        }
        public void EllipseViewModel_ThrowsException5()
        {
            var ellipseVM = new EllipseViewModel();

            ellipseVM.MinorAxisDistance = -1;
        }
        public void EllipseViewModel_ThrowsException3()
        {
            var ellipseVM = new EllipseViewModel();

            ellipseVM.AzimuthString = "esri";
        }
        public void EllipseViewModel_ThrowsException2()
        {
            var ellipseVM = new EllipseViewModel();

            ellipseVM.MinorAxisDistanceString = "esri";
        }