public void LayerModelShowRangeHandlerExecuteTest() { LayerDetailsViewModel layerDetailsViewModel = new LayerDetailsViewModel(); layerDetailsViewModel.ShowRangeClickedEvent += new EventHandler(LayerModelShowRangeClickedEvent); LayerDetailsViewModel_Accessor.ShowRangeHandler target = new LayerDetailsViewModel_Accessor.ShowRangeHandler(layerDetailsViewModel); layerDetailsViewModel.LayerDataDisplayName = "Layer1"; target.Execute(layerDetailsViewModel); Assert.AreEqual(layerDetailsViewModel.LayerDataDisplayName, "Layer2"); }