开发者

testing mouse events in wpf

开发者 https://www.devze.com 2022-12-22 01:04 出处:网络
for example, here\'s some code from an implementation of an attached behavior for a double click command:

for example, here's some code from an implementation of an attached behavior for a double click command:

private static void fe_MouseDown(object sender, MouseButtonEventArgs e) {
        if (e.ClickCount != 2) return;
        ...       
 }

assuming you have a thin client wi开发者_如何学Goth the bulk of the logic in a testable architecture, is there a cheap and relatively painless way to test logic that depends on user gestures like a mouse event?

Cheers,

Berryl

0

精彩评论

暂无评论...
验证码 换一张
取 消