System\Windows\Forms\HtmlElementTests.cs (74)
129HtmlElementCollection collection = element.Children;
130Assert.NotSame(collection, element.Children);
148HtmlElementCollection collection = element.Children;
149Assert.NotSame(collection, element.Children);
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);