public void AddTwice ()
		{
			ColumnDefinitionCollection c = new Grid ().ColumnDefinitions;
			ColumnDefinition d = new ColumnDefinition ();
			c.Add (d);
			c.Add (d);
		}
        public GeneralRequestVisualizer()
        {
            title = NameValuePanel.Create("Title", new TextBox());

            var url = NameValuePanel.Create("URL", new TextBox());
            var method = new ComboBox
            {
                VerticalAlignment = VerticalAlignment.Bottom,
                Margin = new Thickness(0, 0, 5, 0),
                SelectedIndex = 0
            };

            var urlAndMethod = new Grid();
            urlAndMethod.AddColumn(1, GridUnitType.Star);
            urlAndMethod.AddColumn(100, GridUnitType.Pixel);
            urlAndMethod.AddRow(GridLength.Auto);
            urlAndMethod.Add(url, 0, 0);
            urlAndMethod.Add(method, 0, 1);

            var apiGeneralStackPanel = new StackPanel
            {
                Margin = new Thickness(0, 0, 0, 10)
            };
            apiGeneralStackPanel.Children.Add(title);
            apiGeneralStackPanel.Children.Add(urlAndMethod);
            Children.Add(apiGeneralStackPanel);

            this.Bind(x => x.Model.Title).Mate(title.Value);
            this.Bind(x => x.Model.Url).Mate(url.Value);
            this.Bind(x => x.Model.Method).Mate(method, x => x.MainWindow.Methods);
        }
		public void AddToMultipleCollections ()
		{
			ColumnDefinitionCollection c1 = new Grid ().ColumnDefinitions;
			ColumnDefinitionCollection c2 = new Grid ().ColumnDefinitions;
			ColumnDefinition d = new ColumnDefinition ();
			c1.Add (d);
			c2.Add (d);
		}
		public void AddToMultipleCollectionsOne2 ()
		{
			ColumnDefinitionCollection c = new Grid ().ColumnDefinitions;
			ColumnDefinition d = new ColumnDefinition ();
			c.Add (d);
			c.Remove (d);
			c = new Grid ().ColumnDefinitions;
			c.Add (d);
		}
        public TestLineControls CreateControls(Grid grid)
        {
            var controls = new TestLineControls
            {
                Icon = icon,
                Path = path,
                Run = run,
                Status = status
            };

            int rowIndex = grid.RowDefinitions.Count;
            grid.RowDefinitions.Add(new RowDefinition
            {
                Height = new GridLength(30)
            });

            mainPanel.Children.Remove(namePanel);
            grid.Add(namePanel, rowIndex, 0);

            mainPanel.Children.Remove(status);
            grid.Add(status, rowIndex, 1);

            return controls;
        }
		public void IListCopyTo ()
		{
			ColumnDefinitionCollection c = new Grid ().ColumnDefinitions;
			c.Add (new ColumnDefinition ());
			((IList)c).CopyTo (new object [1], 0);
		}
		public void IListIndexerSetNull ()
		{
			ColumnDefinitionCollection c = new Grid ().ColumnDefinitions;
			ColumnDefinition d = new ColumnDefinition ();
			c.Add (d);
			((IList)c) [0] = null;
		}
		public void IndexerSetOutOfRangeFromAnotherCollection ()
		{
			ColumnDefinitionCollection c1 = new Grid ().ColumnDefinitions;
			ColumnDefinition d = new ColumnDefinition ();
			c1.Add (d);
			ColumnDefinitionCollection c2 = new Grid ().ColumnDefinitions;
			c2 [0] = d;
		}
		public void IndexerSetSame ()
		{
			ColumnDefinitionCollection c = new Grid ().ColumnDefinitions;
			ColumnDefinition d = new ColumnDefinition ();
			c.Add (d);
			c [0] = d;
		}
		public void IndexerSetAtIndexInRange ()
		{
			ColumnDefinitionCollection c = new Grid ().ColumnDefinitions;
			ColumnDefinition d = new ColumnDefinition ();
			c.Add (d);
			c [0] = new ColumnDefinition ();
			Assert.AreNotEqual (c [0], d);
		}