示例#1
0
        public void MyToolWindowConstructorTest()
        {

            MyToolWindow target = new MyToolWindow();
            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
 internal void Refresh(GitRepository tracker, MyToolWindow toolWindow)
 {
     this.toolWindow = toolWindow;
     this.tracker = tracker;
     RefreshPrompt();
 }
示例#3
0
 public MyControl(MyToolWindow toolWindow)
 {
     InitializeComponent();
     this.toolWindow             = toolWindow;
     this.gitConsole1.GitExePath = GitSccOptions.Current.GitBashPath;
 }
示例#4
0
 public void WindowPropertyTest()
 {
     MyToolWindow target = new MyToolWindow();
     Assert.IsNotNull(target.Content, "Content property was null");
 }