simple-mvvm

MVVM unit tests - message bus only works once

白昼怎懂夜的黑 提交于 2019-12-25 05:08:37
问题 I am trying to write some unit tests against a view model using SimpleMvvmToolkit, and several of these tests require a message be sent to the message bus to fire events inside the view model. The problem is it appears that I can only 'use' the message bus once; the first test that sends a message passes, but the other two that send a message fail. But if I run each test individually, all three pass, and if I change the order, the first test, no matter which one it is, passes. Here is a