-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Refactor Clipboard to make it testable #459
Copy link
Copy link
Closed
Labels
area-ClipboardIssues related to ClipboardIssues related to ClipboardenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionstest-enhancementImprovements of test source codeImprovements of test source code
Metadata
Metadata
Assignees
Labels
area-ClipboardIssues related to ClipboardIssues related to ClipboardenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additionstest-enhancementImprovements of test source codeImprovements of test source code
Type
Fields
Give feedbackNo fields configured for issues without a type.
Related to #416
Ideally we would refactor clipboard code so that all calls to win32 OLE* methods are exposed by a single class (OleClipboard) and published as a public interface and a constructor that takes object that implements that interface as a parameter. Then the test will mock the IOleClipboard interface and use constructor that takes this mock as a parameter.