275 instantiations of HtmlTestEncoder
Microsoft.AspNetCore.Html.Abstractions.Tests (6)
Microsoft.AspNetCore.Mvc.Localization.Test (2)
Microsoft.AspNetCore.Mvc.Razor.Test (76)
RazorViewTest.cs (52)
35v.HtmlEncoder = new HtmlTestEncoder();
43new HtmlTestEncoder(),
73new HtmlTestEncoder(),
116new HtmlTestEncoder(),
192new HtmlTestEncoder(),
219new HtmlTestEncoder(),
234var htmlEncoder = new HtmlTestEncoder();
268new HtmlTestEncoder(),
293new HtmlTestEncoder(),
319new HtmlTestEncoder(),
348new HtmlTestEncoder(),
404new HtmlTestEncoder(),
448new HtmlTestEncoder(),
502new HtmlTestEncoder(),
536new HtmlTestEncoder(),
579new HtmlTestEncoder(),
624new HtmlTestEncoder(),
648var htmlEncoder = new HtmlTestEncoder();
700new HtmlTestEncoder(),
741new HtmlTestEncoder(),
761var htmlEncoder = new HtmlTestEncoder();
808new HtmlTestEncoder(),
828var htmlEncoder = new HtmlTestEncoder();
877new HtmlTestEncoder(),
892var htmlEncoder = new HtmlTestEncoder();
940new HtmlTestEncoder(),
955var htmlEncoder = new HtmlTestEncoder();
1009new HtmlTestEncoder(),
1044new HtmlTestEncoder(),
1058var htmlEncoder = new HtmlTestEncoder();
1112new HtmlTestEncoder(),
1127var htmlEncoder = new HtmlTestEncoder();
1186new HtmlTestEncoder(),
1227new HtmlTestEncoder(),
1281new HtmlTestEncoder(),
1296var htmlEncoder = new HtmlTestEncoder();
1351new HtmlTestEncoder(),
1366var htmlEncoder = new HtmlTestEncoder();
1409new HtmlTestEncoder(),
1424var htmlEncoder = new HtmlTestEncoder();
1464new HtmlTestEncoder(),
1495new HtmlTestEncoder(),
1513v.HtmlEncoder = new HtmlTestEncoder();
1524v.HtmlEncoder = new HtmlTestEncoder();
1542new HtmlTestEncoder(),
1587new HtmlTestEncoder(),
1645new HtmlTestEncoder(),
1690new HtmlTestEncoder(),
1732new HtmlTestEncoder(),
1767new HtmlTestEncoder(),
1810HtmlEncoder = new HtmlTestEncoder();
1832HtmlEncoder = new HtmlTestEncoder();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (116)
CacheTagHelperTest.cs (28)
46var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache.Object), new HtmlTestEncoder())
73var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
100var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
122var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
151var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
173var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
196var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
236var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(mockCache.Object), new HtmlTestEncoder())
259var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder());
274var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
292var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
310var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
337var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
358var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
390var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
412var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
443var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
465var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
512var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
578var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
584var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
661var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
667var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
742var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
804var encoder = new HtmlTestEncoder();
852var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
857var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder())
890var encoder = new HtmlTestEncoder();
CacheTagKeyTest.cs (24)
29var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
49var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
55var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
73var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
79var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
97var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
103var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
124var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
130var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
154new HtmlTestEncoder())
177var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
206var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
232var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
260var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
286var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
309new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
333var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
353var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
376var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
397var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
424var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
446var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
478var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
510var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
DistributedCacheTagHelperTest.cs (33)
46new HtmlTestEncoder(),
53new HtmlTestEncoder())
87new HtmlTestEncoder(),
95new HtmlTestEncoder())
138new HtmlTestEncoder(),
142new HtmlTestEncoder())
167new HtmlTestEncoder())
195new HtmlTestEncoder(),
203new HtmlTestEncoder())
227new HtmlTestEncoder())
253new HtmlTestEncoder(),
258new HtmlTestEncoder())
279new HtmlTestEncoder(),
284new HtmlTestEncoder());
302new HtmlTestEncoder(),
307new HtmlTestEncoder())
328new HtmlTestEncoder(),
333new HtmlTestEncoder())
358new HtmlTestEncoder(),
367new HtmlTestEncoder())
390new HtmlTestEncoder())
420new HtmlTestEncoder(),
429new HtmlTestEncoder())
453new HtmlTestEncoder())
482new HtmlTestEncoder(),
491new HtmlTestEncoder())
515new HtmlTestEncoder())
545new HtmlTestEncoder(),
579new HtmlTestEncoder())
587new HtmlTestEncoder())
639new HtmlTestEncoder(),
671new HtmlTestEncoder())
679new HtmlTestEncoder())
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (32)
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
Microsoft.AspNetCore.Razor.Runtime.Test (3)
Microsoft.AspNetCore.Razor.Test (37)
TagHelpers\DefaultTagHelperContentTest.cs (18)
38Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
53Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
66Assert.Equal("Hi", tagHelperContent.GetContent(new HtmlTestEncoder()));
80Assert.Equal("Hello World!", tagHelperContent.GetContent(new HtmlTestEncoder()));
97Assert.Equal(expected, copiedTagHelperContent.GetContent(new HtmlTestEncoder()));
228Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
243tagHelperContent.GetContent(new HtmlTestEncoder()));
265tagHelperContent.GetContent(new HtmlTestEncoder()));
281Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
300Assert.Equal(expected, copiedTagHelperContent.GetContent(new HtmlTestEncoder()));
693Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
707Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
724Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
739Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
754Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder()));
767tagHelperContent.WriteTo(writer, new HtmlTestEncoder());
783tagHelperContent.WriteTo(writer, new HtmlTestEncoder());
799tagHelperContent.WriteTo(writer, new HtmlTestEncoder());
Microsoft.Extensions.WebEncoders.Tests (1)
29 references to HtmlTestEncoder
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.Razor.Test (11)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Microsoft.AspNetCore.Razor.Test (3)
Microsoft.Extensions.WebEncoders.Tests (2)