Skip to content

Commit 9ebdb19

Browse files
Add test case for line endings (#169)
1 parent 413a14b commit 9ebdb19

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
* text=auto
22
*.cs diff=csharp
33
*.sh eol=lf
4-
*.sln eol=crlf
4+
*.sln eol=crlf
5+
tests/WhiteSpace/WindowsLineEndings/WindowsLineEndings.cs eol=crlf
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System;
2+
3+
public static class Fake
4+
{
5+
public static DateTime Add(DateTime birthDate)
6+
{
7+
return birthDate.Add(TimeSpan.FromSeconds(1000000000));
8+
}
9+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"PLACEHOLDER_1": "Fake",
3+
"PLACEHOLDER_2": "Add",
4+
"PLACEHOLDER_3": "birthDate"
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"version": 1
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public static class PLACEHOLDER_1
2+
{
3+
public static DateTime PLACEHOLDER_2(DateTime PLACEHOLDER_3)
4+
{
5+
return PLACEHOLDER_3.PLACEHOLDER_2(TimeSpan.FromSeconds(1000000000));
6+
}
7+
}

0 commit comments

Comments
 (0)