File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Sources/Kysect.Configuin.Tests/EditorConfig Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,21 @@ public void Format_QualityAndStyleRulesMashed_ReturnOrderedLinesWithHeader()
79
79
public void FormatAccordingToRuleDefinitions_Sample_ReturnExpectedFormatterDocument ( )
80
80
{
81
81
string input = File . ReadAllText ( Path . Combine ( "Resources" , "Editor-config-sample.ini" ) ) ;
82
- string expected = File . ReadAllText ( Path . Combine ( "Resources" , "Editor-config-sample-formatted.ini" ) ) ;
82
+ // TODO: Do smth with this =_=
83
+ string expected = File . ReadAllText ( Path . Combine ( "Resources" , "Editor-config-sample-formatted.ini" ) )
84
+ . Replace ( "\r \n " , "\n " )
85
+ . Replace ( "\n " , Environment . NewLine ) ;
86
+ ;
83
87
MsLearnDocumentationRawInfo msLearnDocumentationRawInfo = _repositoryPathReader . Provide ( Constants . GetPathToMsDocsRoot ( ) ) ;
84
88
RoslynRules roslynRules = _msLearnDocumentationParser . Parse ( msLearnDocumentationRawInfo ) ;
85
89
86
90
EditorConfigDocument editorConfigDocument = _parser . Parse ( input ) ;
87
91
EditorConfigDocument formattedDocument = _formatter . FormatAccordingToRuleDefinitions ( editorConfigDocument , roslynRules ) ;
88
- formattedDocument . ToFullString ( ) . Should ( ) . Be ( expected ) ;
92
+ // TODO: Do smth with this =_=
93
+ formattedDocument . ToFullString ( )
94
+ . Replace ( "\r \n " , "\n " )
95
+ . Replace ( "\n " , Environment . NewLine )
96
+ . Should ( ) . Be ( expected ) ;
89
97
}
90
98
91
99
private void FormatAndCompare ( string input , string expected )
You can’t perform that action at this time.
0 commit comments