Ejemplo n.º 1
0
        public void MyToolWindowConstructorTest()
        {
            ToolWindow target = new ToolWindow();
            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), "Explorer.Control object was not instantiated");
        }
Ejemplo n.º 2
0
 public void WindowPropertyTest()
 {
     ToolWindow target = new ToolWindow();
     Assert.IsNotNull(target.Window, "Window property was null");
 }