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