PowerToys/src/modules/launcher
ryanbodrug-microsoft 0f6428eed0
User/ryanbod/mock settings disk access (#6188)
* 1) Making Directory Methods private.
2) Removing the CreateDirectory / DeleteDirectory functionality from all Settings Unit Tests.

* Abstracting disk access via IIOProvider to be able to provide mocks for unit tests instead of writing to disk.   This also prevents developers who are running unit tests from interfering with the PowerToys settings on their local dev box.

* Dependency Injecting stub SettingsUtils for all tests

* Removing ISettingsUtils from constructors of objects that need to be deserialized (ColorPickerSettings/PowerLauncherSettings) as this breaks System.Text.Json

* Removing unused namespace reference

* Removing redifined mock

* As per PR feedback.  Stub Settings utils should work with any settings type if the intent is to compile / avoid null ref exceptions.

Strangely when implementing this fix it became apparent that a stub settings isn't enough, and disk access needed to be mocked.  I can't explain why the tests were passing previously.

* Leveraging GetMockIOProviderForSaveLoadExists
2020-09-21 10:14:44 -07:00
..
JsonRPC Merge PowerLauncher branch (#2345) 2020-04-28 15:06:01 -07:00
Microsoft.Launcher [Launcher] Kill the Launcher immediately (#6747) 2020-09-21 13:51:30 +02:00
Plugins rerouting to Log class vs custom logic (#6688) 2020-09-18 12:58:52 -07:00
PowerLauncher User/ryanbod/mock settings disk access (#6188) 2020-09-21 10:14:44 -07:00
PowerLauncher.Telemetry Adding fxcop to PowerLauncher.TelemetryProject (#6259) 2020-09-03 10:44:51 -07:00
Wox.Core Upgrade nuget packages (#6641) 2020-09-16 12:24:21 -07:00
Wox.CrashReporter Merge PowerLauncher branch (#2345) 2020-04-28 15:06:01 -07:00
Wox.Infrastructure [Launcher] Use a keyboard hook in the runner to invoke the Launcher (#6660) 2020-09-21 12:44:16 +02:00
Wox.Plugin Upgrade nuget packages (#6641) 2020-09-16 12:24:21 -07:00
Wox.Test Corrected querytext display on action keyword (#6341) 2020-09-08 10:32:01 -07:00
Directory.Build.targets removed incrementalClean for launcher (#5172) 2020-07-23 10:34:32 -07:00
LICENSE Merge PowerLauncher branch (#2345) 2020-04-28 15:06:01 -07:00
README.md Safeguarding end user links in settings (#4226) 2020-06-11 10:16:39 -07:00

This file has been moved

PowerToys Run Overview