Skip to content

Commit 394da97

Browse files
committed
Fix test on linux/mac?
1 parent b599aa1 commit 394da97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ public class MyComponent : ComponentBase
17441744
CompileToAssembly(generated, designTime ? [] : [
17451745
// (21,55): error CS0120: An object reference is required for the non-static field, method, or property 'MyComponent.Value'
17461746
// __builder.AddComponentParameter(1, nameof(global::Test.MyComponent.
1747-
Diagnostic(ErrorCode.ERR_ObjectRequired, "global::Test.MyComponent.\n#nullable restore\n#line (1,20)-(1,25) \"x:\\dir\\subdir\\Test\\TestComponent.cshtml\"\nValue".Replace("\n", Environment.NewLine)).WithArguments("Test.MyComponent.Value").WithLocation(21, 55),
1747+
Diagnostic(ErrorCode.ERR_ObjectRequired, "global::Test.MyComponent.\r\n#nullable restore\r\n#line (1,20)-(1,25) \"x:\\dir\\subdir\\Test\\TestComponent.cshtml\"\r\nValue").WithArguments("Test.MyComponent.Value").WithLocation(21, 55),
17481748
// (38,55): error CS0120: An object reference is required for the non-static field, method, or property 'MyComponent.ValueChanged'
17491749
// __builder.AddComponentParameter(2, nameof(global::Test.MyComponent.ValueChanged), (global::System.Action<System.Int32>)(__value => ParentValue = __value));
17501750
Diagnostic(ErrorCode.ERR_ObjectRequired, "global::Test.MyComponent.ValueChanged").WithArguments("Test.MyComponent.ValueChanged").WithLocation(38, 55)

0 commit comments

Comments
 (0)