Skip to content

Commit

Permalink
FormCommitTests: Disable AppSettings.ProvideAutocompletion (#11157)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstv committed Aug 15, 2023
1 parent 368c324 commit 5fc8e6d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class FormCommitTests
private ReferenceRepository _referenceRepository;

// Track the original setting value
private bool _provideAutocompletion;
private bool _showAvailableDiffTools;

// Created once for each test
Expand All @@ -35,15 +36,18 @@ public void SetUp()
public void OneTimeSetUp()
{
// Remember the current setting...
_provideAutocompletion = AppSettings.ProvideAutocompletion;
_showAvailableDiffTools = AppSettings.ShowAvailableDiffTools;

// ...and stop loading custom diff tools
// ...and stop loading auto completion and custom diff tools
AppSettings.ProvideAutocompletion = false;
AppSettings.ShowAvailableDiffTools = false;
}

[OneTimeTearDown]
public void OneTimeTearDown()
{
AppSettings.ProvideAutocompletion = _provideAutocompletion;
AppSettings.ShowAvailableDiffTools = _showAvailableDiffTools;
_referenceRepository.Dispose();
}
Expand Down

0 comments on commit 5fc8e6d

Please sign in to comment.