@@ -18,7 +18,7 @@ public async Task NoArguments()
1818 app . CliApplicationBuilder . UseConsole ( console ) ;
1919 await app . RunAsync ( ) ;
2020 var output = console . ReadOutputString ( ) ;
21- var expectedOutput = NormalizedLineEndingsFileReader . ReadAllText ( "./TestFiles/CliOutputNoArgs.txt " ) ;
21+ var expectedOutput = OsDependantOutput . ReadAllText ( "./TestFiles/CliOutputNoArgs" ) ;
2222 output . ShouldEndWith ( expectedOutput ) ;
2323 }
2424
@@ -35,7 +35,7 @@ public async Task IssueBodyOptionIsRequired()
3535 var args = new [ ] { "parse-issue-form" , "--template-filepath" , "some filepath" } ;
3636 await app . RunAsync ( args ) ;
3737 var output = console . ReadOutputString ( ) ;
38- var expectedOutput = NormalizedLineEndingsFileReader . ReadAllText ( "./TestFiles/CliOutputUsage.txt " ) ;
38+ var expectedOutput = OsDependantOutput . ReadAllText ( "./TestFiles/CliOutputUsage" ) ;
3939 output . ShouldEndWith ( expectedOutput ) ;
4040 }
4141
@@ -52,7 +52,7 @@ public async Task TemplateFilepathOptionIsRequired()
5252 var args = new [ ] { "parse-issue-form" , "--issue-body" , "some issue body" } ;
5353 await app . RunAsync ( args ) ;
5454 var output = console . ReadOutputString ( ) ;
55- var expectedOutput = NormalizedLineEndingsFileReader . ReadAllText ( "./TestFiles/CliOutputUsage.txt " ) ;
55+ var expectedOutput = OsDependantOutput . ReadAllText ( "./TestFiles/CliOutputUsage" ) ;
5656 output . ShouldEndWith ( expectedOutput ) ;
5757 }
5858
@@ -71,7 +71,7 @@ public async Task IssueBodyOptionValidation(string issueBody)
7171 var args = new [ ] { "parse-issue-form" , "--issue-body" , issueBody , "--template-filepath" , "some filepath" } ;
7272 await app . RunAsync ( args ) ;
7373 var error = console . ReadErrorString ( ) ;
74- var expectedError = File . ReadAllText ( "./TestFiles/CliErrorIssueBodyValidation.txt" ) ;
74+ var expectedError = NormalizedLineEndingsFileReader . ReadAllText ( "./TestFiles/CliErrorIssueBodyValidation.txt" ) ;
7575 expectedError . ShouldBe ( error ) ;
7676 }
7777
@@ -91,7 +91,7 @@ public async Task TemplateFilepathOptionValidation(string templateFilepath)
9191 var args = new [ ] { "parse-issue-form" , "--issue-body" , "some body" , "--template-filepath" , templateFilepath } ;
9292 await app . RunAsync ( args ) ;
9393 var error = console . ReadErrorString ( ) ;
94- var expectedError = File . ReadAllText ( "./TestFiles/CliErrorTemplateFilepathValidation.txt" ) ;
94+ var expectedError = NormalizedLineEndingsFileReader . ReadAllText ( "./TestFiles/CliErrorTemplateFilepathValidation.txt" ) ;
9595 expectedError . ShouldBe ( error ) ;
9696 }
9797
@@ -109,7 +109,7 @@ public async Task TemplateFilepathOptionValidation2()
109109 var args = new [ ] { "parse-issue-form" , "--issue-body" , "some body" , "--template-filepath" , "non-existent-file.txt" } ;
110110 await app . RunAsync ( args ) ;
111111 var error = console . ReadErrorString ( ) ;
112- var expectedError = File . ReadAllText ( "./TestFiles/CliErrorTemplateFilepathValidation2.txt" ) ;
112+ var expectedError = NormalizedLineEndingsFileReader . ReadAllText ( "./TestFiles/CliErrorTemplateFilepathValidation2.txt" ) ;
113113 expectedError . ShouldBe ( error ) ;
114114 }
115115
0 commit comments