Skip to content

Commit

Permalink
use some raw strings
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jul 22, 2023
1 parent e74c5e7 commit 63cc0ac
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

<note>
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

<note>
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
Expand Down
28 changes: 15 additions & 13 deletions src/Verify.MSTest.Tests/Snippets/ExtensionSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,26 @@ public class ExtensionSample :
[TestMethod]
public Task AtMethod() =>
Verify(
target: @"
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>",
target: """
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>
""",
extension: "xml");

[TestMethod]
public Task AtMethodFluent() =>
Verify(
target: @"
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>",
extension: "xml");
target: """
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>
""",
extension: "xml");
}

#endregion
26 changes: 14 additions & 12 deletions src/Verify.NUnit.Tests/Snippets/ExtensionSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,25 @@ public class ExtensionSample
[Test]
public Task AtMethod() =>
Verify(
target: @"
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>",
target: """
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>
""",
extension: "xml");

[Test]
public Task AtMethodFluent() =>
Verify(
target: @"
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>",
target: """
<note>
<to>Joe</to>
<from>Kim</from>
<heading>Reminder</heading>
</note>
""",
extension: "xml");
}

Expand Down

0 comments on commit 63cc0ac

Please sign in to comment.