416 references to HtmlContentUtilities
Microsoft.AspNetCore.Mvc.Razor.Test (8)
RazorPageTest.cs (7)
999Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal); 1006Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal); 1044Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal); 1051Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal); 1090Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal); 1097Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal); 1372Assert.Equal("Hello world", HtmlContentUtilities.HtmlContentToString(buffer));
TagHelpers\UrlResolutionTagHelperTest.cs (1)
192Assert.Equal(expectedHref, HtmlContentUtilities.HtmlContentToString(htmlContent), StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (60)
ComponentTagHelperTest.cs (1)
40var content = await prerenderer.Dispatcher.InvokeAsync(() => HtmlContentUtilities.HtmlContentToString(output.Content));
FormTagHelperTest.cs (5)
100var expectedPostContent = HtmlContentUtilities.HtmlContentToString( 155var expectedPostContent = HtmlContentUtilities.HtmlContentToString( 214var expectedPostContent = HtmlContentUtilities.HtmlContentToString( 272var expectedPostContent = HtmlContentUtilities.HtmlContentToString( 337HtmlContentUtilities.HtmlContentToString(
InputTagHelperTest.cs (14)
106Assert.Equal(originalContent, HtmlContentUtilities.HtmlContentToString(output.Content)); 107Assert.Equal(expectedContent, HtmlContentUtilities.HtmlContentToString(output)); 243Assert.Equal(content, HtmlContentUtilities.HtmlContentToString(output.Content)); 244Assert.Equal(expectedContent, HtmlContentUtilities.HtmlContentToString(output)); 452Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.PostElement)); 959Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement))); 1019Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.PostElement)); 1078Assert.Equal(expectedEndOfFormContent, string.Join("", viewContext.FormContext.EndOfFormContent.Select(html => HtmlContentUtilities.HtmlContentToString(html)))); 1079Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement))); 1139Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.PostElement)); 1211Assert.Equal(originalContent, HtmlContentUtilities.HtmlContentToString(output.Content)); 1212Assert.Equal(expectedContent, HtmlContentUtilities.HtmlContentToString(output)); 1381Assert.Equal(expectedEndOfFormContent, string.Join("", viewContext.FormContext.EndOfFormContent.Select(html => HtmlContentUtilities.HtmlContentToString(html)))); 1382Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.PostElement)));
LabelTagHelperTest.cs (2)
222HtmlContentUtilities.HtmlContentToString(output.Content)); 328Assert.Equal(expectedContent, HtmlContentUtilities.HtmlContentToString(output.Content));
LinkTagHelperTest.cs (6)
601var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 642var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 695var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 1010var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 1050var content = HtmlContentUtilities.HtmlContentToString(output.PostElement, new HtmlTestEncoder()); 1092var content = HtmlContentUtilities.HtmlContentToString(output.PostElement, new HtmlTestEncoder());
PartialTagHelperTest.cs (8)
182var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 223var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 264var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 306var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 642var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 692var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 788var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 834var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder());
PersistComponentStateTagHelperTest.cs (7)
49var content = HtmlContentUtilities.HtmlContentToString(output.Content); 71var content = HtmlContentUtilities.HtmlContentToString(output.Content); 99var content = HtmlContentUtilities.HtmlContentToString(output.Content); 129var content = HtmlContentUtilities.HtmlContentToString(output.Content); 159var content = HtmlContentUtilities.HtmlContentToString(output.Content); 183var content = HtmlContentUtilities.HtmlContentToString(output.Content); 212var content = HtmlContentUtilities.HtmlContentToString(output.Content);
ScriptTagHelperTest.cs (5)
560var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 613var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 947var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 985var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 1024var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder());
SelectTagHelperTest.cs (3)
342Assert.Equal(expectedPostContent, HtmlContentUtilities.HtmlContentToString(output.PostContent)); 423Assert.Equal(expectedPostContent, HtmlContentUtilities.HtmlContentToString(output.PostContent)); 522Assert.Equal(expectedPostContent, HtmlContentUtilities.HtmlContentToString(output.PostContent));
TagHelperOutputExtensionsTest.cs (5)
987Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(classAttribute)); 1009Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(classAttribute)); 1035Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(classAttribute)); 1101Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(classAttribute)); 1145Assert.Equal(expectedValue, HtmlContentUtilities.HtmlContentToString(classAttribute));
TextAreaTagHelperTest.cs (2)
153Assert.Equal(expectedContent, HtmlContentUtilities.HtmlContentToString(output.Content)); 228Assert.Equal(expectedContent, HtmlContentUtilities.HtmlContentToString(output.Content));
ValidationSummaryTagHelperTest.cs (2)
132Assert.Empty(HtmlContentUtilities.HtmlContentToString(output)); 200Assert.Empty(HtmlContentUtilities.HtmlContentToString(output));
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (348)
AntiforgeryExtensionsTest.cs (1)
31HtmlContentUtilities.HtmlContentToString(inputElement));
DefaultDisplayTemplatesTest.cs (12)
62Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 81Assert.Equal("(null value)", HtmlContentUtilities.HtmlContentToString(result)); 111Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 137Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 164Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 206Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 225Assert.Equal("HtmlEncode[[Formatted string]]", HtmlContentUtilities.HtmlContentToString(result)); 251Assert.Empty(HtmlContentUtilities.HtmlContentToString(result)); 273Assert.Equal("HtmlEncode[[ViewData string]]", HtmlContentUtilities.HtmlContentToString(result)); 295Assert.Equal("HtmlEncode[[Model string]]", HtmlContentUtilities.HtmlContentToString(result)); 316Assert.Equal("HtmlEncode[[Model string]]", HtmlContentUtilities.HtmlContentToString(result)); 340Assert.Equal(string.Empty, HtmlContentUtilities.HtmlContentToString(result));
DefaultEditorTemplatesTest.cs (29)
199Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 236Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 278Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 301Assert.Equal(html.ViewData.ModelMetadata.NullDisplayText, HtmlContentUtilities.HtmlContentToString(result)); 334Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 367Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 397Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 441Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 463Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 490Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 514Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 542Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 563Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 596Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 628Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 671Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 713Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 756Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 798Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(result)); 822HtmlContentUtilities.HtmlContentToString(result)); 867Assert.Equal(expectedInput, HtmlContentUtilities.HtmlContentToString(result)); 937Assert.Equal(expectedInput, HtmlContentUtilities.HtmlContentToString(result)); 1009Assert.Equal(expectedInput, HtmlContentUtilities.HtmlContentToString(result)); 1078Assert.Equal(expectedInput, HtmlContentUtilities.HtmlContentToString(result)); 1148Assert.Equal(expectedInput, HtmlContentUtilities.HtmlContentToString(result)); 1215Assert.Equal(expectedInput, HtmlContentUtilities.HtmlContentToString(result)); 1239HtmlContentUtilities.HtmlContentToString(result)); 1262HtmlContentUtilities.HtmlContentToString(result)); 1288HtmlContentUtilities.HtmlContentToString(result));
DefaultHtmlGeneratorTest.cs (2)
973var antiforgeryField = HtmlContentUtilities.HtmlContentToString(result, HtmlEncoder.Default); 997var antiforgeryField = HtmlContentUtilities.HtmlContentToString(result, HtmlEncoder.Default);
Rendering\HtmlHelperCheckboxTest.cs (38)
33Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 54Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 71Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 123Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 141Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 161Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 186Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 206Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 227Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 253Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 272Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 291Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 313Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 334Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 356Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 376Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 397Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 416Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 436Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 454Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 474Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 492Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 512Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 538Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 557Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 577Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 606Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 625Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 648Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 672Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 692Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 717Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 738Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 757Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 773HtmlContentUtilities.HtmlContentToString(checkboxResult)); 789HtmlContentUtilities.HtmlContentToString(checkboxResult)); 808HtmlContentUtilities.HtmlContentToString(checkboxResult)); 824HtmlContentUtilities.HtmlContentToString(checkboxResult));
Rendering\HtmlHelperDisplayExtensionsTest.cs (17)
39Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(displayResult)); 40Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(displayNullResult)); 41Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(displayForResult)); 42Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(displayForModelResult)); 67Assert.Equal("ViewDataValue", HtmlContentUtilities.HtmlContentToString(displayResult)); 151Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(displayResult)); 177Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(displayResult)); 205Assert.Equal("ViewDataValue", HtmlContentUtilities.HtmlContentToString(displayResult)); 233Assert.Equal("SomeField", HtmlContentUtilities.HtmlContentToString(displayResult)); 258Assert.Equal("ViewDataValue", HtmlContentUtilities.HtmlContentToString(displayResult)); 308Assert.Equal("ViewDataValue", HtmlContentUtilities.HtmlContentToString(displayResult)); 349Assert.Equal("created from IStringLocalizer", HtmlContentUtilities.HtmlContentToString(displayResult)); 377Assert.Equal("Faulted from ResourceType", HtmlContentUtilities.HtmlContentToString(displayResult)); 405Assert.Equal("SomeField", HtmlContentUtilities.HtmlContentToString(displayResult)); 430Assert.Equal("ViewDataValue", HtmlContentUtilities.HtmlContentToString(displayResult)); 479Assert.Equal("ViewDataValue", HtmlContentUtilities.HtmlContentToString(displayResult)); 506Assert.Equal("SomeField", HtmlContentUtilities.HtmlContentToString(displayResult));
Rendering\HtmlHelperDropDownListExtensionsTest.cs (9)
40Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListResult)); 64Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListResult)); 89Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListResult)); 115Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListResult)); 141Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListResult)); 164Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListForResult)); 190Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListForResult)); 215Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListForResult)); 241Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(dropDownListForResult));
Rendering\HtmlHelperEditorExtensionsTest.cs (2)
35Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(displayResult)); 61Assert.Equal(expectedResult, HtmlContentUtilities.HtmlContentToString(displayResult));
Rendering\HtmlHelperHiddenTest.cs (43)
58Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 73Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 90Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 108Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 125Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 143Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 159Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 175Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 191Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 206Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 222Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 238Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 253Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 270Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 284Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 300Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 316Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 332Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(html)); 348Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 363Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 394Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 417Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 457Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 477Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 494Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 540Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 579Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 594Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 609Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 624Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 640Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 656Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 671Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 689Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 721Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 741Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 758Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 819Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 867Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 885Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 903HtmlContentUtilities.HtmlContentToString(hiddenResult)); 921HtmlContentUtilities.HtmlContentToString(hiddenForResult)); 939HtmlContentUtilities.HtmlContentToString(hiddenResult));
Rendering\HtmlHelperLabelExtensionsTest.cs (58)
28Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelResult)); 29Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelNullResult)); 30Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelForResult)); 31Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 48Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 49Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelNullResult)); 50Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 51Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 69Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 70Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelNullResult)); 71Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 72Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 87Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 88Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 103Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 104Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 128Assert.Equal("<label for=\"\">HtmlEncode[[" + propertyName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelResult)); 129Assert.Equal("<label for=\"\">HtmlEncode[[" + propertyName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelForResult)); 130Assert.Equal("<label for=\"\">HtmlEncode[[" + propertyName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 145Assert.Equal("<label for=\"HtmlEncode[[value]]\">HtmlEncode[[value]]</label>", HtmlContentUtilities.HtmlContentToString(labelResult)); 168Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelResult)); 169Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelNullResult)); 170Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelForResult)); 171Assert.Empty(HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 197Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 198Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelNullResult)); 199Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 200Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 222Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 223Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelNullResult)); 224Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 225Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 248Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 249Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelNullResult)); 250Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 251Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 273Assert.Equal("<label for=\"\">HtmlEncode[[" + displayName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelResult)); 274Assert.Equal("<label for=\"\">HtmlEncode[[" + displayName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelForResult)); 275Assert.Equal("<label for=\"\">HtmlEncode[[" + displayName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 304Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 305Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelNullResult)); 306Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 307Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 328Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 329Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 351Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 352Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 375Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelResult)); 376Assert.Equal(expectedLabel, HtmlContentUtilities.HtmlContentToString(labelForResult)); 397Assert.Equal("<label for=\"HtmlEncode[[Property1]]\">HtmlEncode[[" + displayName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelResult)); 398Assert.Equal("<label for=\"HtmlEncode[[Property1]]\">HtmlEncode[[" + displayName + "]]</label>", HtmlContentUtilities.HtmlContentToString(labelForResult)); 419Assert.Equal("<label for=\"HtmlEncode[[" + expectedId + "]]\">HtmlEncode[[" + expectedText + "]]</label>", HtmlContentUtilities.HtmlContentToString(result)); 447Assert.Equal("<label for=\"HtmlEncode[[unknownKey]]\">HtmlEncode[[unknownKey]]</label>", HtmlContentUtilities.HtmlContentToString(result)); 460Assert.Equal("<label for=\"HtmlEncode[[Property1]]\">HtmlEncode[[Hello]]</label>", HtmlContentUtilities.HtmlContentToString(labelResult)); 473Assert.Equal("<label for=\"HtmlEncode[[Property1]]\">HtmlEncode[[Hello]]</label>", HtmlContentUtilities.HtmlContentToString(labelForResult)); 486Assert.Equal("<label for=\"\">HtmlEncode[[Hello]]</label>", HtmlContentUtilities.HtmlContentToString(labelForModelResult)); 499Assert.Equal("<label attr=\"HtmlEncode[[value]]\" for=\"HtmlEncode[[Property1]]\">HtmlEncode[[Property1]]</label>", HtmlContentUtilities.HtmlContentToString(labelForResult)); 512Assert.Equal("<label attr=\"HtmlEncode[[value]]\" for=\"\">HtmlEncode[[Hello]]</label>", HtmlContentUtilities.HtmlContentToString(labelForModelResult));
Rendering\HtmlHelperLinkGenerationTest.cs (2)
87Assert.Equal(expectedLink, HtmlContentUtilities.HtmlContentToString(actualLink)); 154Assert.Equal(expectedLink, HtmlContentUtilities.HtmlContentToString(actualLink));
Rendering\HtmlHelperListBoxExtensionsTest.cs (6)
40Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(listBoxResult)); 65Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(listBoxResult)); 90Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(listBoxResult)); 112Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(listBoxForResult)); 137Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(listBoxForResult)); 162Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(listBoxForResult));
Rendering\HtmlHelperPartialExtensionsTest.cs (3)
362Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(actual)); 377Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(actual)); 393Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(actual));
Rendering\HtmlHelperPasswordTest.cs (19)
71Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 90Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 106Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 124Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 140Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 173Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 195Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 212Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 248Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 266Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 281Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 303Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 320Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 374Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 392HtmlContentUtilities.HtmlContentToString(passwordResult)); 410HtmlContentUtilities.HtmlContentToString(passwordForResult)); 428HtmlContentUtilities.HtmlContentToString(passwordResult)); 443Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 523Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result));
Rendering\HtmlHelperRadioButtonExtensionsTest.cs (9)
28HtmlContentUtilities.HtmlContentToString(radioButtonResult)); 43HtmlContentUtilities.HtmlContentToString(radioButtonForResult)); 63HtmlContentUtilities.HtmlContentToString(radioButtonResult)); 83HtmlContentUtilities.HtmlContentToString(radioButtonForResult)); 98HtmlContentUtilities.HtmlContentToString(radioButtonResult)); 116HtmlContentUtilities.HtmlContentToString(radioButtonResult)); 137HtmlContentUtilities.HtmlContentToString(radioButtonResult)); 158HtmlContentUtilities.HtmlContentToString(radioButtonForResult)); 200HtmlContentUtilities.HtmlContentToString(radioButtonForResult));
Rendering\HtmlHelperSelectTest.cs (38)
337Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 361Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 401Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 437Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 475Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 500Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 528Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 555Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 571Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 588Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 610Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 634Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 658Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 683Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 711Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 734Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 758Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 783Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 804Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 840Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 878Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 903Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 931Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 958Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 974Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 991Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1010Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1031Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1055Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1076Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1104Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1132Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1152Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1172Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1197Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1223Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1244Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html)); 1266Assert.Equal(expectedHtml, HtmlContentUtilities.HtmlContentToString(html));
Rendering\HtmlHelperTextAreaExtensionsTest.cs (7)
31HtmlContentUtilities.HtmlContentToString(textAreaResult)); 50HtmlContentUtilities.HtmlContentToString(textAreaForResult)); 69HtmlContentUtilities.HtmlContentToString(textAreaResult)); 89HtmlContentUtilities.HtmlContentToString(textAreaResult)); 109HtmlContentUtilities.HtmlContentToString(textAreaForResult)); 126HtmlContentUtilities.HtmlContentToString(textAreaResult)); 143HtmlContentUtilities.HtmlContentToString(textAreaForResult));
Rendering\HtmlHelperTextAreaTest.cs (4)
22var result = HtmlContentUtilities.HtmlContentToString(textArea); 37var result = HtmlContentUtilities.HtmlContentToString(textArea); 85Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 136Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result));
Rendering\HtmlHelperTextBoxExtensionsTest.cs (8)
31HtmlContentUtilities.HtmlContentToString(textBoxResult)); 49HtmlContentUtilities.HtmlContentToString(textBoxForResult)); 67HtmlContentUtilities.HtmlContentToString(textBoxResult)); 85HtmlContentUtilities.HtmlContentToString(textBoxResult)); 103HtmlContentUtilities.HtmlContentToString(textBoxResult)); 131HtmlContentUtilities.HtmlContentToString(textBoxResult)); 159HtmlContentUtilities.HtmlContentToString(textBoxForResult)); 205HtmlContentUtilities.HtmlContentToString(textBoxForResult));
Rendering\HtmlHelperTextBoxTest.cs (4)
28var result = HtmlContentUtilities.HtmlContentToString(textBox); 55var result = HtmlContentUtilities.HtmlContentToString(textBox); 103Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 154Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result));
Rendering\HtmlHelperValidationMessageExtensionsTest.cs (8)
25HtmlContentUtilities.HtmlContentToString(validationMessageResult)); 40HtmlContentUtilities.HtmlContentToString(validationMessageForResult)); 55HtmlContentUtilities.HtmlContentToString(validationMessageResult)); 70HtmlContentUtilities.HtmlContentToString(validationMessageForResult)); 85HtmlContentUtilities.HtmlContentToString(validationMessageResult)); 100HtmlContentUtilities.HtmlContentToString(validationMessageForResult)); 115HtmlContentUtilities.HtmlContentToString(validationMessageResult)); 130HtmlContentUtilities.HtmlContentToString(validationMessageForResult));
Rendering\HtmlHelperValidationSummaryTest.cs (19)
147Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 219Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 245Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 270Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 294Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 324Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 360Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 390Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 420Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 454Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 487Assert.Equal(expected, HtmlContentUtilities.HtmlContentToString(result)); 505HtmlContentUtilities.HtmlContentToString(validationSummaryResult)); 538HtmlContentUtilities.HtmlContentToString(validationSummaryResult)); 557HtmlContentUtilities.HtmlContentToString(validationSummaryResult)); 577HtmlContentUtilities.HtmlContentToString(validationSummaryResult)); 596HtmlContentUtilities.HtmlContentToString(validationSummaryResult)); 615HtmlContentUtilities.HtmlContentToString(validationSummaryResult)); 635HtmlContentUtilities.HtmlContentToString(validationSummaryResult)); 658HtmlContentUtilities.HtmlContentToString(validationSummaryResult));
Rendering\TagBuilderTest.cs (10)
207Assert.Equal("<p>", HtmlContentUtilities.HtmlContentToString(tag)); 221Assert.Equal("<p>", HtmlContentUtilities.HtmlContentToString(tag)); 222Assert.Equal("</p>", HtmlContentUtilities.HtmlContentToString(tagBuilder)); 235Assert.Equal("</p>", HtmlContentUtilities.HtmlContentToString(tag)); 249Assert.Equal("</p>", HtmlContentUtilities.HtmlContentToString(tag)); 250Assert.Equal("<p></p>", HtmlContentUtilities.HtmlContentToString(tagBuilder)); 263Assert.Equal("<p />", HtmlContentUtilities.HtmlContentToString(tag)); 277Assert.Equal("<span>Hello</span>", HtmlContentUtilities.HtmlContentToString(tag)); 306Assert.Equal(HtmlContentUtilities.HtmlContentToString(originalTagBuilder.RenderBody()), HtmlContentUtilities.HtmlContentToString(clonedTagBuilder.RenderBody()));