Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit-tests for FancyZones #1266

Closed
SeraphimaZykova opened this issue Feb 11, 2020 · 1 comment
Closed

Add unit-tests for FancyZones #1266

SeraphimaZykova opened this issue Feb 11, 2020 · 1 comment
Assignees
Labels
Area-Tests issues that relate to tests Product-FancyZones Refers to the FancyZones PowerToy Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@SeraphimaZykova
Copy link
Collaborator

Summary of the new feature/enhancement

Add unit tests that require private FancyZones methods calls

@enricogior enricogior added Product-FancyZones Refers to the FancyZones PowerToy Area-Tests issues that relate to tests labels Feb 11, 2020
@enricogior enricogior added this to the 20.02 release milestone Feb 11, 2020
@enricogior
Copy link
Contributor

This test is currently disabled because it requires to call a private method.

#if 0
TEST_METHOD(OnKeyDownWinPressedOverride)
{
sendKeyboardInput(VK_LWIN);
const Settings settings{
.overrideSnapHotkeys = true,
};
auto config = serializedPowerToySettings(settings);
m_settings->SetConfig(config.c_str());
{
tagKBDLLHOOKSTRUCT input{};
input.vkCode = VK_LEFT;
Assert::IsTrue(m_fzCallback->OnKeyDown(&input));
}
{
tagKBDLLHOOKSTRUCT input{};
input.vkCode = VK_RIGHT;
Assert::IsTrue(m_fzCallback->OnKeyDown(&input));
}
}
#endif

@SeraphimaZykova SeraphimaZykova self-assigned this Feb 21, 2020
@enricogior enricogior removed this from the 20.02 release milestone Feb 27, 2020
@enricogior enricogior added the Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. label Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Tests issues that relate to tests Product-FancyZones Refers to the FancyZones PowerToy Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests

2 participants