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
13
13
/// <summary>
14
14
/// A test which runs all rules on a given piece of code
15
15
/// </summary>
16
- public sealed class CombinationTest : CodeFormattingTestBase
16
+ public sealed class CombinationTest : CodeFormattingTestBase , IDisposable
17
17
{
18
18
private static FormattingEngineImplementation s_formattingEngine ;
19
19
@@ -25,10 +25,16 @@ static CombinationTest()
25
25
public CombinationTest ( )
26
26
{
27
27
s_formattingEngine . CopyrightHeader = ImmutableArray . Create ( "// header" ) ;
28
+ s_formattingEngine . AllowTables = true ;
28
29
s_formattingEngine . FormatLogger = new EmptyFormatLogger ( ) ;
29
30
s_formattingEngine . PreprocessorConfigurations = ImmutableArray < string [ ] > . Empty ;
30
31
}
31
32
33
+ public void Dispose ( )
34
+ {
35
+ s_formattingEngine . AllowTables = false ;
36
+ }
37
+
32
38
protected override async Task < Document > RewriteDocumentAsync ( Document document )
33
39
{
34
40
var solution = await s_formattingEngine . FormatCoreAsync (
You can’t perform that action at this time.
0 commit comments