Base:
28 references to ToString
Microsoft.AspNetCore.Html.Abstractions (1)
HtmlFormattableString.cs (1)
102return htmlString.ToString();
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (9)
NewtonsoftJsonHelperTest.cs (3)
38Assert.Equal(expectedOutput, htmlString.ToString()); 66Assert.Equal(expectedOutput, htmlString.ToString()); 85Assert.Equal(expectedOutput, htmlString.ToString());
src\Mvc\Mvc.ViewFeatures\test\Rendering\JsonHelperTestBase.cs (6)
28Assert.Equal(expectedOutput, htmlString.ToString(), ignoreCase: true); 43Assert.Equal(expectedOutput, htmlString.ToString()); 62Assert.Equal(expectedOutput, htmlString.ToString()); 81Assert.Equal(expectedOutput, htmlString.ToString(), ignoreCase: true); 100Assert.Equal(expectedOutput, htmlString.ToString()); 119Assert.Equal(expectedOutput, htmlString.ToString());
Microsoft.AspNetCore.Mvc.Razor (1)
TagHelpers\UrlResolutionTagHelper.cs (1)
180stringValue = htmlString.ToString();
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorViewTest.cs (1)
1324await v.Output.WriteLineAsync(htmlEncoder.Encode(v.RenderSection("foo").ToString()));
TagHelpers\UrlResolutionTagHelperTest.cs (1)
306Assert.Equal(url.ToString(), attributeValue.ToString(), StringComparer.Ordinal);
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Cache\DistributedCacheTagHelperFormatter.cs (1)
28var serialized = Encoding.UTF8.GetBytes(context.Html.ToString());
FormTagHelper.cs (1)
192attributeValue = htmlString.ToString();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
DistributedCacheTagHelperTest.cs (1)
733Assert.Equal(deserialized.ToString(), content);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
Rendering\HtmlStringTest.cs (3)
37Assert.Equal(expectedText, content.ToString()); 47Assert.Equal(string.Empty, content.ToString()); 58var result = content.ToString();
Rendering\JsonHelperTestBase.cs (6)
28Assert.Equal(expectedOutput, htmlString.ToString(), ignoreCase: true); 43Assert.Equal(expectedOutput, htmlString.ToString()); 62Assert.Equal(expectedOutput, htmlString.ToString()); 81Assert.Equal(expectedOutput, htmlString.ToString(), ignoreCase: true); 100Assert.Equal(expectedOutput, htmlString.ToString()); 119Assert.Equal(expectedOutput, htmlString.ToString());
Rendering\SystemTextJsonHelperTest.cs (3)
35Assert.Equal(expectedOutput, htmlString.ToString()); 54Assert.Equal(expectedOutput, htmlString.ToString()); 86Assert.Equal(expectedOutput, htmlString.ToString(), ignoreLineEndingDifferences: true);