How to test function with the KeyEventArgs parameter ? RRS feed

  • Question

  • Hi everyone, :)
    I'm now learning unit test on Visual Studio and I'm using MVVM pattern.

    Everything is fine . But there are some functions, I pass KeyEventArgs as their parameter. I don't know how to test them because I cannot create KeyEventArgs's instance.

    Can anyone help me please ?

    Thank you :)

    Sunday, February 22, 2015 8:31 PM