PowerToys/src/modules
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
..
colorPicker User/ryanbod/mock settings disk access (#6188) 2020-09-21 10:14:44 -07:00
fancyzones [FancyZones] Initial improvements in FancyZones exception handling (#6063) 2020-09-18 15:18:01 +02:00
imageresizer Upgrade nuget packages (#6641) 2020-09-16 12:24:21 -07:00
interface [Launcher] Use a keyboard hook in the runner to invoke the Launcher (#6660) 2020-09-21 12:44:16 +02:00
keyboardmanager [Keyboard Manager] Fix focusable elements should have different names accessibility issue (#6672) 2020-09-18 17:12:37 -07:00
launcher User/ryanbod/mock settings disk access (#6188) 2020-09-21 10:14:44 -07:00
powerrename [PowerRename] fix build warning (#6210) 2020-08-28 14:45:24 +02:00
previewpane Upgrade nuget packages (#6641) 2020-09-16 12:24:21 -07:00
shortcut_guide Add in verbose error message and telemetry for SetWindowsHookEx failure (#6454) 2020-09-09 14:27:40 -07:00