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

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