コード例 #1
0
        public void LayerModelViewInWWTHandlerConstructorTest()
        {
            LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();

            LayerDetailsViewModel_Accessor.ViewInWWTHandler target = new LayerDetailsViewModel_Accessor.ViewInWWTHandler(layerDetailsViewModel);
            Assert.AreEqual(target.parent, layerDetailsViewModel);
        }
コード例 #2
0
        public void LayerModelViewInWWTHandlerExecuteTest()
        {
            LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();

            layerDetailsViewModel.ViewnInWWTClickedEvent += new EventHandler(LayerModelViewnInWWTClickedEvent);
            LayerDetailsViewModel_Accessor.ViewInWWTHandler target = new LayerDetailsViewModel_Accessor.ViewInWWTHandler(layerDetailsViewModel);
            layerDetailsViewModel.LayerDataDisplayName = "Layer1";
            target.Execute(layerDetailsViewModel);
            Assert.AreEqual(layerDetailsViewModel.LayerDataDisplayName, "Layer2");
        }
コード例 #3
0
 public void LayerModelViewInWWTHandlerExecuteTest()
 {
     LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();
     layerDetailsViewModel.ViewnInWWTClickedEvent += new EventHandler(LayerModelViewnInWWTClickedEvent);
     LayerDetailsViewModel_Accessor.ViewInWWTHandler target = new LayerDetailsViewModel_Accessor.ViewInWWTHandler(layerDetailsViewModel);
     layerDetailsViewModel.LayerDataDisplayName = "Layer1";
     target.Execute(layerDetailsViewModel);
     Assert.AreEqual(layerDetailsViewModel.LayerDataDisplayName, "Layer2");
 }
コード例 #4
0
 public void LayerModelViewInWWTHandlerConstructorTest()
 {
     LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel();
     LayerDetailsViewModel_Accessor.ViewInWWTHandler target = new LayerDetailsViewModel_Accessor.ViewInWWTHandler(layerDetailsViewModel);
     Assert.AreEqual(target.parent, layerDetailsViewModel);
 }