82 references to Parent
System.Windows.Forms.Tests (82)
System\Windows\Forms\HtmlDocumentTests.cs (1)
408using var iHtmlDomNode = ComHelpers.GetComScope<IHTMLDOMNode>(element.Parent.DomElement);
System\Windows\Forms\HtmlElementTests.cs (80)
509HtmlElement element = document.Body.Parent; 630HtmlElement element = document.Body.Parent; 921HtmlElement element = document.Body.Parent; 1027HtmlElement element = document.Body.Parent; 1043HtmlElement result = element.Parent; 1044Assert.NotSame(result, element.Parent); 1047HtmlElement resultParent = result.Parent; 1049Assert.Null(resultParent.Parent); 1065HtmlElement result = element.Parent; 1066Assert.NotSame(result, element.Parent); 2001Assert.Equal(2, element.Parent.Children.Count); 2002Assert.Equal("H1", element.Parent.Children[0].TagName); 2003Assert.Equal("DIV", element.Parent.Children[1].TagName); 2007Assert.Equal(3, element.Parent.Children.Count); 2008Assert.Equal("H1", element.Parent.Children[0].TagName); 2009Assert.Equal("H2", element.Parent.Children[1].TagName); 2010Assert.Equal("DIV", element.Parent.Children[2].TagName); 2014Assert.Equal(4, element.Parent.Children.Count); 2015Assert.Equal("H1", element.Parent.Children[0].TagName); 2016Assert.Equal("H2", element.Parent.Children[1].TagName); 2017Assert.Equal("H3", element.Parent.Children[2].TagName); 2018Assert.Equal("DIV", element.Parent.Children[3].TagName); 2041Assert.Equal(2, element.Parent.Children.Count); 2042Assert.Equal("H1", element.Parent.Children[0].TagName); 2043Assert.Equal("DIV", element.Parent.Children[1].TagName); 2049Assert.Equal(3, element.Parent.Children.Count); 2050Assert.Equal("H1", element.Parent.Children[0].TagName); 2051Assert.Equal("H2", element.Parent.Children[1].TagName); 2052Assert.Equal("DIV", element.Parent.Children[2].TagName); 2058Assert.Equal(4, element.Parent.Children.Count); 2059Assert.Equal("H1", element.Parent.Children[0].TagName); 2060Assert.Equal("H2", element.Parent.Children[1].TagName); 2061Assert.Equal("H3", element.Parent.Children[2].TagName); 2062Assert.Equal("DIV", element.Parent.Children[3].TagName); 2084Assert.Single(element.Parent.Children); 2085Assert.Equal("DIV", element.Parent.Children[0].TagName); 2091Assert.Single(element.Parent.Children); 2092Assert.Equal("DIV", element.Parent.Children[0].TagName); 2099Assert.Single(element.Parent.Children); 2100Assert.Equal("DIV", element.Parent.Children[0].TagName); 2124Assert.Single(element.Parent.Children); 2125Assert.Equal("DIV", element.Parent.Children[0].TagName); 2133Assert.Single(element.Parent.Children); 2134Assert.Equal("DIV", element.Parent.Children[0].TagName); 2143Assert.Single(element.Parent.Children); 2144Assert.Equal("DIV", element.Parent.Children[0].TagName); 2171Assert.Single(element.Parent.Children); 2172Assert.Equal("DIV", element.Parent.Children[0].TagName); 2179Assert.Single(element.Parent.Children); 2180Assert.Equal("DIV", element.Parent.Children[0].TagName); 2204Assert.Single(element.Parent.Children); 2205Assert.Equal("DIV", element.Parent.Children[0].TagName); 2213Assert.Single(element.Parent.Children); 2214Assert.Equal("DIV", element.Parent.Children[0].TagName); 2223Assert.Single(element.Parent.Children); 2224Assert.Equal("DIV", element.Parent.Children[0].TagName); 2244Assert.Equal(2, element.Parent.Children.Count); 2245Assert.Equal("DIV", element.Parent.Children[0].TagName); 2246Assert.Equal("H1", element.Parent.Children[1].TagName); 2249Assert.Equal(3, element.Parent.Children.Count); 2250Assert.Equal("DIV", element.Parent.Children[0].TagName); 2251Assert.Equal("H2", element.Parent.Children[1].TagName); 2252Assert.Equal("H1", element.Parent.Children[2].TagName); 2255Assert.Equal(4, element.Parent.Children.Count); 2256Assert.Equal("DIV", element.Parent.Children[0].TagName); 2257Assert.Equal("H3", element.Parent.Children[1].TagName); 2258Assert.Equal("H2", element.Parent.Children[2].TagName); 2259Assert.Equal("H1", element.Parent.Children[3].TagName); 2282Assert.Equal(2, element.Parent.Children.Count); 2283Assert.Equal("DIV", element.Parent.Children[0].TagName); 2284Assert.Equal("H1", element.Parent.Children[1].TagName); 2290Assert.Equal(3, element.Parent.Children.Count); 2291Assert.Equal("DIV", element.Parent.Children[0].TagName); 2292Assert.Equal("H2", element.Parent.Children[1].TagName); 2293Assert.Equal("H1", element.Parent.Children[2].TagName); 2299Assert.Equal(4, element.Parent.Children.Count); 2300Assert.Equal("DIV", element.Parent.Children[0].TagName); 2301Assert.Equal("H3", element.Parent.Children[1].TagName); 2302Assert.Equal("H2", element.Parent.Children[2].TagName); 2303Assert.Equal("H1", element.Parent.Children[3].TagName);
System\Windows\Forms\HtmlWindowTests.cs (1)
87window.Should().Be(document.GetElementById("1").Parent.Document.Window);