public void ViewpointViewModelViewpointNameChangeHandlerConstructorTest()
        {
            ViewpointViewModel viewpointViewModel = new ViewpointViewModel(ViewpointViewModelTest.GetPerspectiveInstance());

            ViewpointViewModel_Accessor.ViewpointNameChangeHandler target = new ViewpointViewModel_Accessor.ViewpointNameChangeHandler(viewpointViewModel);
            Assert.IsNotNull(viewpointViewModel);
            Assert.IsNotNull(target);
            Assert.IsNotNull(target.parent);
        }
        public void ExecuteEmptyViewpointNameTest()
        {
            ViewpointViewModel viewpointViewModel = new ViewpointViewModel(ViewpointViewModelTest.GetPerspectiveInstance());

            viewpointViewModel.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ViewpointViewModelPropertyChanged);

            ViewpointViewModel_Accessor.ViewpointNameChangeHandler target = new ViewpointViewModel_Accessor.ViewpointNameChangeHandler(viewpointViewModel);

            viewpointViewModel.Name = "NameBeforeEvent";

            string viewpointName = string.Empty;

            target.Execute(viewpointName);
            Assert.AreEqual(viewpointViewModel.Name, "NameAfterEvent");
        }
        public void ExecuteValidViewpointNameTest()
        {
            ViewpointViewModel viewpointViewModel = new ViewpointViewModel(ViewpointViewModelTest.GetPerspectiveInstance());

            viewpointViewModel.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ViewpointViewModelPropertyChanged);

            ViewpointViewModel_Accessor.ViewpointNameTextChangeHandler target = new ViewpointViewModel_Accessor.ViewpointNameTextChangeHandler(viewpointViewModel);

            viewpointViewModel.Name = "NameBeforeEvent";

            // This will be used to set the ViewpointViewModel name.
            string viewpointName = "NameAfterEvent";

            target.Execute(viewpointName);
            Assert.AreEqual(viewpointViewModel.Name, "NameAfterEvent");
        }