File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ public void FactMethodName()
1313 . Should ( ) . Be ( "...<LastGenOutput>WrapperInterfaceHost.g.cs</LastGenOutput>..." ) ;
1414 }
1515 [ Fact ]
16+ public void FactMethodName_3 ( )
17+ {
18+ Program . Fix ( "...<LastGenOutput>WrapperInterfaceHost.g.cs</LastGenOutput>...<LastGenOutput>WrapperInterfaceHost.cs</LastGenOutput>..." )
19+ . Should ( ) . Be ( "...<LastGenOutput>WrapperInterfaceHost.g.cs</LastGenOutput>...<LastGenOutput>WrapperInterfaceHost.g.cs</LastGenOutput>..." ) ;
20+ }
21+ [ Fact ]
1622 public void FactMethodName2 ( )
1723 {
1824 Program . Fix ( "...<LastGenOutput>WrapperInterfaceHost.cs" )
Original file line number Diff line number Diff line change @@ -12,14 +12,23 @@ public static class Program
1212 static void Main ( )
1313 {
1414 var projectFiles = Directory . EnumerateFiles (
15- Environment . CurrentDirectory , "*.csproj" ) ;
15+ Environment . CurrentDirectory , "*.csproj" , SearchOption . AllDirectories ) ;
1616 foreach ( var file in projectFiles )
1717 {
18+ Console . Write ( file + "..." ) ;
1819 var oldText = File . ReadAllText ( file ) ;
1920 var newText = Fix ( oldText ) ;
2021 if ( oldText != newText )
22+ {
2123 File . WriteAllText ( file , newText ) ;
24+ Console . Write ( "Fixed" ) ;
25+ }
26+ else
27+ {
28+ Console . Write ( "<null>" ) ;
29+ }
2230 }
31+
2332 }
2433
2534 public static string Fix ( string input )
You can’t perform that action at this time.
0 commit comments