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