Unit testing silverlight, where does this happen?

Im tring to start unit testing with silverlight, and some of the examples on the Internet use the following statements

EnqueueCallback
EnqueueConditional
EnqueueTestComplete

where do they live?

+3
source share
1 answer

Well found my answer. If your test inherits from WorkItemTest (either PresentationTest or SilverlightTest), you can call from your tests:

TestComplete()

Indicates the structure in which your test method ended and move on to the next result. This can be added to event callbacks, delegates, etc. After that, you should not do more work or your test.

EnqueueTestComplete

TestComplete. TestComplete, , Enqueue *.

EnqueueCallback

(, ..). , . enqueue Actions, Action .

EnqueueConditional

/ Func. , , . True, , . , , , .

EnqueueDelay

, TimeSpan, , , . , , . DoEvents, , .

+5

Source: https://habr.com/ru/post/1713217/


All Articles