@@ -74,7 +74,7 @@ private static bool LineCanHaveCSharpComment(string l)
7474 . Skip ( 1 ) . Select ( afterPrefix => afterPrefix . Split ( '\n ' ) [ 0 ] . TrimEnd ( ) ) . ToList ( ) ;
7575 var missingSourceLineNumbers = lineNumbersAdded . Except ( convertedCommentLineNumbers ) ;
7676 if ( missingSourceLineNumbers . Any ( ) ) {
77- Assert . False ( true , "Comments not converted from source lines: " + string . Join ( ", " , missingSourceLineNumbers ) + GetSourceAndConverted ( sourceWithComments , convertedCode ) ) ;
77+ Assert . Fail ( "Comments not converted from source lines: " + string . Join ( ", " , missingSourceLineNumbers ) + GetSourceAndConverted ( sourceWithComments , convertedCode ) ) ;
7878 }
7979 OurAssert . Equal ( string . Join ( ", " , lineNumbersAdded ) , string . Join ( ", " , convertedCommentLineNumbers ) , ( ) => GetSourceAndConverted ( sourceWithComments , convertedCode ) ) ;
8080 }
@@ -107,8 +107,7 @@ public async Task TestConversionVisualBasicToCSharpAsync(string visualBasicCode,
107107 bool incompatibleWithAutomatedCommentTesting = false )
108108 {
109109 if ( expectSurroundingBlock ) expectedCsharpCode = SurroundWithBlock ( expectedCsharpCode ) ;
110- var conversionOptions = new TextConversionOptions ( DefaultReferences . NetStandard2 )
111- {
110+ var conversionOptions = new TextConversionOptions ( DefaultReferences . NetStandard2 ) {
112111 RootNamespaceOverride = _rootNamespace ,
113112 ShowCompilationErrors = ! expectSurroundingBlock
114113 } ;
@@ -163,8 +162,7 @@ private static void AssertConvertedCodeResultEquals(string convertedCodeFollowed
163162
164163 private static void AssertCodeEqual ( string originalSource , string expectedConversion , string actualConversion )
165164 {
166- OurAssert . EqualIgnoringNewlines ( expectedConversion , actualConversion , ( ) =>
167- {
165+ OurAssert . EqualIgnoringNewlines ( expectedConversion , actualConversion , ( ) => {
168166 StringBuilder sb = OurAssert . DescribeStringDiff ( expectedConversion , actualConversion ) ;
169167 sb . AppendLine ( OurAssert . LineSplitter ) ;
170168 sb . AppendLine ( "source:" ) ;
@@ -182,8 +180,7 @@ private static (IReadOnlyCollection<string> Lines, IReadOnlyCollection<string> L
182180 {
183181 var lines = Utils . HomogenizeEol ( code ) . Split ( new [ ] { Environment . NewLine } , StringSplitOptions . None ) ;
184182 var lineNumbersAdded = new List < string > ( ) ;
185- var newLines = lines . Select ( ( line , i ) =>
186- {
183+ var newLines = lines . Select ( ( line , i ) => {
187184 var lineNumber = i . ToString ( ) ;
188185 var potentialExistingComments = line . Split ( new [ ] { singleLineCommentStart } , StringSplitOptions . None ) . Skip ( 1 ) ;
189186 if ( potentialExistingComments . Count ( ) == 1 || ! lineCanHaveComment ( line ) ) return line ;
@@ -207,8 +204,7 @@ public CSToVBWithoutSimplifierConversion()
207204
208205 string ILanguageConversion . TargetLanguage => _baseConversion . TargetLanguage ;
209206
210- ConversionOptions ILanguageConversion . ConversionOptions
211- {
207+ ConversionOptions ILanguageConversion . ConversionOptions {
212208 get => _baseConversion . ConversionOptions ;
213209 set => _baseConversion . ConversionOptions = value ;
214210 }
0 commit comments