コード例 #1
0
        public void MyToolWindowConstructorTest()
        {
            InstallBakerToolWindow target = new InstallBakerToolWindow();
            Assert.IsNotNull(target, "Failed to create an instance of InstallBakerToolWindow");

            MethodInfo method = target.GetType().GetMethod("get_Content", BindingFlags.Public | BindingFlags.Instance);
            Assert.IsNotNull(method.Invoke(target, null), "ToolWindowView object was not instantiated");
        }
コード例 #2
0
 public void WindowPropertyTest()
 {
     InstallBakerToolWindow target = new InstallBakerToolWindow();
     Assert.IsNotNull(target.Content, "Content property was null");
 }