Beispiel #1
0
        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");
        }
Beispiel #2
0
        public void WindowPropertyTest()
        {
            JavaScriptBrowserWindow target = new JavaScriptBrowserWindow();

            Assert.IsNotNull(target.Window, "Window property was null");
        }