public void LayerModelViewInWWTHandlerConstructorTest() { LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel(); LayerDetailsViewModel_Accessor.ViewInWWTHandler target = new LayerDetailsViewModel_Accessor.ViewInWWTHandler(layerDetailsViewModel); Assert.AreEqual(target.parent, layerDetailsViewModel); }
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"); }