Skip to content

Commit

Permalink
add some extra tests
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed May 21, 2021
1 parent d531c56 commit 68c2bb4
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Src/CSharpier.Tests/TestFiles/StringLiteral/VerbatimStrings.cst
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,23 @@
class ClassName
{
private string bothLineEndingsPersist = @"\r\n \n";
private string interpolatedVersion = @$"\r\n \n";

private string emptyLines =
@"one

two


three
";

private string interpolatedEmptyLines =
@$"one

two


three
";

Expand All @@ -26,9 +36,20 @@ jhaksdlfklasdfjlkasdjflaksdfklasldkjfljkasdljfkasljkdfakljsdfjlkaskfjlaskjldfksd
";

private string stayOnLine2 =
$@"one
jhaksdlfklasdfjlkasdjflaksdfklasldkjfljkasdljfkasljkdfakljsdfjlkaskfjlaskjldfksdjlf
";

private string stayOnLine3 =
@"one
two
three
four";

private string stayOnLine4 =
@$"one
two
three
four";

private void MethodName()
Expand All @@ -42,10 +63,27 @@ jhaksdlfklasdfjlkasdjflaksdfklasldkjfljkasdljfkasljkdfakljsdfjlkaskfjlaskjldfksd
"
);

CallSomeLongMethod(
$@"one
two
three
four
jhaksdlfklasdfjlkasdjflaksdfklasldkjfljkasdljfkasljkdfakljsdfjlkaskfjlaskjldfksdjlf
"
);

CallSomeLongMethod(
@"one
two
three
four",
"two"
);

CallSomeLongMethod(
$@"one
two
three
four",
"two"
);
Expand Down

0 comments on commit 68c2bb4

Please sign in to comment.