PowerToys/src/modules
Mehmet Murat Akburak da22e21a0e
[PowerRename] Fix tests inconsistency, improve test performance (#8129)
* Move retrieveing file attibutes to PowerRenameRegex
Move file attributes unit tests to PowerRenameRegexTests
Add file time field to MockPowerRenameItem

* Add file attributes unittests to PowerRenameManagerTests

* Change variable name

* Rearrange function arguments

* Check if file attributes are used only once

* Change variable name LocalTime -> fileTime, date -> time

* Set fileTime as a member of PowerRenameRegEx rather than passing as an argument

* Change function name isFileAttributesUsed() -> isFileTimeUsed()
Check before resetting fileTime

* Fix small bugs

* Fix typos

* Refactor for readability, move free calls to reachable places

* Fix search for area empty bug
searchTerm being empty is not an invalid argument rather it must return OK without any operation
Tests must check if Replace()  returns S_OK becuase later it checks its result

* Check return values of method calls in PowerRenameManager
Remove received argments checks from some methods because argument being null or empty string doesnt mean it is invalid or method fails

* Fix formatting. Remove overlooked comment. Fix error message.

* Change HRESULT declarations according to coding style

* Fix unhandled case. Refactor.
2020-12-14 10:28:12 +01:00
..
colorPicker Color picker netcore 31 (#8417) 2020-12-10 08:21:46 +01:00
fancyzones [KBM] Open Remap Shortcuts/Remap Keyboard window on the same monitor as Settings. (#8325) 2020-12-10 18:28:44 +03:00
imageresizer adding in comments / adjusting for 8468 (#8532) 2020-12-10 21:54:24 -08:00
interface Non localized module name (#7170) 2020-10-19 16:07:02 -07:00
keyboardmanager adding in comments / adjusting for 8468 (#8532) 2020-12-10 21:54:24 -08:00
launcher [PT Run] Add logs for Launcher (#8489) 2020-12-10 14:56:16 +02:00
powerrename [PowerRename] Fix tests inconsistency, improve test performance (#8129) 2020-12-14 10:28:12 +01:00
previewpane [PreviewPane] Porting .NET Core 3.1 (#8432) 2020-12-11 09:59:42 +01:00
shortcut_guide Add error handling for all possible failing of winrt::check_result (#8278) 2020-12-01 12:03:24 +02:00