Skip to content

Commit

Permalink
Convert verbatim strings to regular strings for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartleby2718 committed Jun 18, 2024
1 parent 3f976ae commit 155d64e
Show file tree
Hide file tree
Showing 23 changed files with 50 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,7 @@ public void Test(object actual, object expected)
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapInTestMethod($@"
↓ClassicAssert.AreEqual(
Expand All @@ -319,8 +318,7 @@ public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] b
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapInTestMethod($@"
↓ClassicAssert.AreEqual(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapInTestMethod($@"
↓ClassicAssert.AreNotEqual(
Expand All @@ -128,8 +127,7 @@ public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] b
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapInTestMethod($@"
↓ClassicAssert.AreNotEqual(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down Expand Up @@ -168,8 +167,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down Expand Up @@ -168,8 +167,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down Expand Up @@ -168,8 +167,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -260,8 +259,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -260,8 +259,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -191,8 +190,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand All @@ -204,8 +203,7 @@ public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ public void TestMethod()
public void CodeFixForGenericMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -391,8 +390,7 @@ public void TestMethod()
public void CodeFixForGenericMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -155,8 +154,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -227,8 +226,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down Expand Up @@ -366,8 +365,7 @@ public void TestMethod()
public void CodeFixForGenericMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand Down Expand Up @@ -177,8 +176,7 @@ public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand Down Expand Up @@ -177,8 +176,7 @@ public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand All @@ -243,8 +242,7 @@ public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand All @@ -170,8 +169,7 @@ public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen(
{
var assertion = diagnosticIdsToAssertions[diagnosticId];
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var expectedDiagnostic = ExpectedDiagnostic.Create(diagnosticId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -260,8 +259,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -260,8 +259,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithEndOfLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand All @@ -155,8 +154,7 @@ public void TestMethod()
public void CodeFixMaintainsReasonableTriviaWithNewLineClosingParen([Values] bool hasMessage)
{
var commaAndMessage = hasMessage
? @",
""message"""
? ",\r\n \"message\""
: string.Empty;
var code = TestUtility.WrapMethodInClassNamespaceAndAddUsings($@"
public void TestMethod()
Expand Down
Loading

0 comments on commit 155d64e

Please sign in to comment.