public void MyToolWindowConstructorTest() { JavaScriptBrowserWindow target = new JavaScriptBrowserWindow(); Assert.IsNotNull(target, "Failed to create an instance of MyToolWindow"); FieldInfo field = target.GetType().GetField("control", BindingFlags.NonPublic | BindingFlags.Instance); Assert.IsNotNull(field.GetValue(target), "MyControl object was not instantiated"); }
public void WindowPropertyTest() { JavaScriptBrowserWindow target = new JavaScriptBrowserWindow(); Assert.IsNotNull(target.Window, "Window property was null"); }