1 instantiation of FormattingTestContext
Microsoft.AspNetCore.Razor.Test.Common (1)
Formatting\FormattingTestCase.cs (1)
37
constructorArguments[0] = new
FormattingTestContext
8 references to FormattingTestContext
Microsoft.AspNetCore.Razor.Test.Common (1)
Formatting\FormattingTestCase.cs (1)
36
Debug.Assert(constructorArguments.Length >= 1 && constructorArguments[0] is
FormattingTestContext
, $"{TestMethod.TestClass.Class.Name}.{TestMethod.Method.Name} uses a formatting test attribute in a class without a FormattingTestContext parameter?");
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (7)
Cohost\Formatting\FormattingTestBase.cs (5)
25
private readonly
FormattingTestContext
_context;
28
private protected FormattingTestBase(
FormattingTestContext
context, HtmlFormattingService htmlFormattingService, ITestOutputHelper testOutputHelper)
111
input = new TestCode(
FormattingTestContext
.FlipLineEndings(input.OriginalInput));
112
expected =
FormattingTestContext
.FlipLineEndings(expected);
113
htmlFormatted =
FormattingTestContext
.FlipLineEndings(htmlFormatted);
Cohost\Formatting\OnTypeFormattingTest.cs (2)
18
public class OnTypeFormattingTest(
FormattingTestContext
context, HtmlFormattingFixture fixture, ITestOutputHelper testOutput)
19
: FormattingTestBase(context, fixture.Service, testOutput), IClassFixture<
FormattingTestContext
>