MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / TestEndPosition

Method TestEndPosition

Source/Engine/Tests/TestHtmlParser.cs:103–117  ·  view source on GitHub ↗
(string html)

Source from the content-addressed store, hash-verified

101 }
102
103 [TestCase("b<a>", ExpectedResult = 4)]
104 [TestCase("b<a/>", ExpectedResult = 5)]
105 [TestCase("b<a />", ExpectedResult = 6)]
106 [TestCase("b<a />", ExpectedResult = 7)]
107 [TestCase("b<a size=50>", ExpectedResult = 12)]
108 [TestCase("b<a size=\"50\">", ExpectedResult = 14)]
109 public int TestEndPosition(string html)
110 {
111 var parser = new HtmlParser(html);
112 while (parser.ParseNext(out var tag))
113 {
114 return tag.EndPosition;
115 }
116 return -1;
117 }
118 }
119}
120#endif

Callers

nothing calls this directly

Calls 1

ParseNextMethod · 0.80

Tested by

no test coverage detected