What's the best way to create EditingContext for unit testing a custom control? RRS feed

  • Question

  • I have a custom control (call it MyComboBox) which I use inside custom ActivityDesigners.  I want to create some unit tests for MyComboBox, and what it needs is an EditingContext passed into it - this is done typicall from within the Activity Designer. 

    In a unit test, I don't really want to have an ActivityDesigner as part of the test - is there a way I could create some sort of Editing Context object manually I could pass to my control tests?

    Thursday, July 15, 2010 9:34 PM


  • EditingContext has a public constructor and you can create an EditingContext directly.
    • Marked as answer by Andrew_Zhu Friday, July 23, 2010 7:54 AM
    Tuesday, July 20, 2010 10:08 AM