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

Method TestEnding

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

Source from the content-addressed store, hash-verified

70 }
71
72 [TestCase("b<a>", ExpectedResult = false)]
73 [TestCase("b<a/>", ExpectedResult = true)]
74 [TestCase("b<a />", ExpectedResult = true)]
75 [TestCase("b<a />", ExpectedResult = true)]
76 [TestCase("b<a size=50>", ExpectedResult = false)]
77 [TestCase("b<a size=50/>", ExpectedResult = true)]
78 [TestCase("b</a>", ExpectedResult = true)]
79 public bool TestEnding(string html)
80 {
81 var parser = new HtmlParser(html);
82 while (parser.ParseNext(out var tag))
83 {
84 return tag.IsSlash;
85 }
86 throw new System.Exception();
87 }
88
89 [TestCase("b<a size=50>", ExpectedResult = 1)]
90 [TestCase("sd b <a>", ExpectedResult = 5)]

Callers

nothing calls this directly

Calls 1

ParseNextMethod · 0.80

Tested by

no test coverage detected