This repository was archived by the owner on Jul 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/Microsoft.DotNet.CodeFormatting.Tests/Rules Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ namespace Microsoft.DotNet.CodeFormatting.Tests
1313 /// <summary>
1414 /// A test which runs all rules on a given piece of code
1515 /// </summary>
16- public sealed class CombinationTest : CodeFormattingTestBase
16+ public sealed class CombinationTest : CodeFormattingTestBase , IDisposable
1717 {
1818 private static FormattingEngineImplementation s_formattingEngine ;
1919
@@ -25,10 +25,16 @@ static CombinationTest()
2525 public CombinationTest ( )
2626 {
2727 s_formattingEngine . CopyrightHeader = ImmutableArray . Create ( "// header" ) ;
28+ s_formattingEngine . AllowTables = true ;
2829 s_formattingEngine . FormatLogger = new EmptyFormatLogger ( ) ;
2930 s_formattingEngine . PreprocessorConfigurations = ImmutableArray < string [ ] > . Empty ;
3031 }
3132
33+ public void Dispose ( )
34+ {
35+ s_formattingEngine . AllowTables = false ;
36+ }
37+
3238 protected override async Task < Document > RewriteDocumentAsync ( Document document )
3339 {
3440 var solution = await s_formattingEngine . FormatCoreAsync (
You can’t perform that action at this time.
0 commit comments