Skip to content

Commit fc82b82

Browse files
Use raw string literal
1 parent 77b3fa5 commit fc82b82

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/CommunityToolkit.Maui.SourceGenerators.Internal.UnitTests/BindablePropertyModelTests.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ static Compilation CreateCompilation(string source)
168168
public void BindablePropertyName_WithInitializer_ReturnsCorrectEffectiveDefaultValueCreatorMethodName()
169169
{
170170
// Arrange
171-
var compilation = CreateCompilation("public class TestClass { public string TestProperty { get; set; } = \"Initial Value\"; }");
171+
var compilation = CreateCompilation(
172+
"""
173+
public class TestClass { public string TestProperty { get; set; } = "Initial Value"; }");
174+
""");
172175
var typeSymbol = compilation.GetTypeByMetadataName("TestClass")!;
173176
var propertySymbol = typeSymbol.GetMembers("TestProperty").OfType<IPropertySymbol>().First();
174177

@@ -203,7 +206,10 @@ public void BindablePropertyName_WithInitializer_ReturnsCorrectEffectiveDefaultV
203206
public void BindablePropertyName_WithInitializerAndDefaulValueCreator_ReturnsCorrectEffectiveDefaultValueCreatorMethodName()
204207
{
205208
// Arrange
206-
var compilation = CreateCompilation("public class TestClass { public string TestProperty { get; set; } = \"Initial Value\"; }");
209+
var compilation = CreateCompilation(
210+
"""
211+
public class TestClass { public string TestProperty { get; set; } = "Initial Value"; }
212+
""");
207213
var typeSymbol = compilation.GetTypeByMetadataName("TestClass")!;
208214
var propertySymbol = typeSymbol.GetMembers("TestProperty").OfType<IPropertySymbol>().First();
209215

0 commit comments

Comments
 (0)