13 references to ToJson
Microsoft.AspNetCore.Components.Endpoints (2)
Assets\ImportMap.cs (1)
66builder.AddMarkupContent(3, _computedImportMapDefinition!.ToJson());
Assets\ImportMapDefinition.cs (1)
213public override string ToString() => ToJson();
Microsoft.AspNetCore.Components.Endpoints.Tests (9)
Assets\ImportMapDefinitionTest.cs (5)
37Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n")); 66Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n")); 96Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n")); 128Assert.Equal(expectedJson, importMapDefinition.ToJson().Replace("\r\n", "\n")); 199Assert.Equal(expectedImportMap, combinedImportMap.ToJson().Replace("\r\n", "\n"));
ImportMapTest.cs (4)
76Assert.Equal(importMapDefinition.ToJson(), frames.Array[3].TextContent); 121Assert.Equal(importMapDefinition.ToJson(), frames.Array[2].TextContent); 186Assert.Equal(otherImportMapDefinition.ToJson(), frames.Array[2].TextContent); 245Assert.Equal(importMapDefinition.ToJson(), frames.Array[2].TextContent);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (2)
ScriptTagHelperTest.cs (2)
751Assert.Equal(importMap.ToJson(), output.Content.GetContent()); 794Assert.Equal(importMap.ToJson(), output.Content.GetContent());