public void DisposeShouldDiposeAnyInternalTaskPanes()
        {
            var original = new CustomTaskPaneDouble(string.Empty);
            var viewContext = new object();
            var sut = new OneToManyCustomTaskPaneAdapter(original, viewContext);

            sut.Dispose();

            Assert.Equal(1, original.DisposedCalled);
        }
        public void DisposeShouldDiposeAnyInternalTaskPanes()
        {
            var original    = new CustomTaskPaneDouble(string.Empty);
            var viewContext = new object();
            var sut         = new OneToManyCustomTaskPaneAdapter(original, viewContext);

            sut.Dispose();

            Assert.Equal(1, original.DisposedCalled);
        }
 public CustomTaskPane Add(UserControl control, string title, object window)
 {
     var customTaskPaneDouble = new CustomTaskPaneDouble(title, window);
     customTaskPanes.Add(customTaskPaneDouble);
     return customTaskPaneDouble;
 }