public void MyToolWindowConstructorTest() { PlotterToolWindow target = new PlotterToolWindow(); Assert.IsNotNull(target, "Failed to create an instance of MyToolWindow"); MethodInfo method = target.GetType().GetMethod("get_Content", BindingFlags.Public | BindingFlags.Instance); Assert.IsNotNull(method.Invoke(target, null), "MyControl object was not instantiated"); }
public void WindowPropertyTest() { PlotterToolWindow target = new PlotterToolWindow(); Assert.IsNotNull(target.Content, "Content property was null"); }
public Plotter2DService(PlotterToolWindow window) { if (window == null) throw new ArgumentNullException("window"); _window = window; _plotter = window.Content as PlotterControl; }