Пример #1
0
        public void MyToolWindowConstructorTest()
        {
            DefinitionManagerWindow target = new DefinitionManagerWindow();
            Assert.IsNotNull(target, "Failed to create an instance of MyToolWindow");

            MethodInfo method = target.GetType().GetMethod("get_Content", BindingFlags.Public | BindingFlags.Instance);
            Assert.IsNotNull(method.Invoke(target, null), "MyControl object was not instantiated");
        }
Пример #2
0
 public void WindowPropertyTest()
 {
     DefinitionManagerWindow target = new DefinitionManagerWindow();
     Assert.IsNotNull(target.Content, "Content property was null");
 }