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

Spaces in XmlNotepad solution path breaks Unit tests. #35

Closed
shadolight opened this issue May 30, 2019 · 1 comment
Closed

Spaces in XmlNotepad solution path breaks Unit tests. #35

shadolight opened this issue May 30, 2019 · 1 comment

Comments

@shadolight
Copy link

Unit tests cannot be executed if the XmlNotepad Solution is located in a path with spaces in the path. For example c:\users\john smith\will\not\work\XmlNotepad.

In addition all unit tests that uses this pattern...
p = pivalue.Bounds.Center();
var hit = ntv.HitTest(p.X, p.Y);
string hitname = hit.Name;
..fails on my computer.

@lovettchris
Copy link
Member

fixed bugs in handling of folder paths containing spaces. I also made TestIntellisense a bit more robust. As you can see the unit tests are using System.Windows.Automation and the coordinates returned from this API are used sometimes to move and click the mouse. This is done using the Win32 SendInput API. If this is not working for you then I wonder if there is some sort of DPI mismatch between these two API's. Specifically if you use this Setting on Windows 10, then the tests might fail because of that. But I tried various settings here and the tests still pass. So I'd be curious what you find with the "inspect.exe" tool included in the Windows SDK.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants