File: Language\TestRazorCodeDocument.cs
Web Access
Project: src\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.Test.Common\Microsoft.AspNetCore.Razor.Test.Common.csproj (Microsoft.AspNetCore.Razor.Test.Common)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Razor.Language;
 
public static class TestRazorCodeDocument
{
    public static RazorCodeDocument CreateEmpty()
        => RazorCodeDocument.Create(
            source: TestRazorSourceDocument.Create(content: string.Empty));
 
    public static RazorCodeDocument Create(string content, bool normalizeNewLines = false)
        => RazorCodeDocument.Create(
            source: TestRazorSourceDocument.Create(content, normalizeNewLines: normalizeNewLines));
}