public void SyncTest() { DemoCommand command = new DemoCommand(); command.Execute(); // 说明同步调用的情况下,只触发一次同步事件 Assert.AreEqual <int>(1, command.Log.Count); Assert.AreEqual <string>("OnCompleted", command.Log[0]); }
public void SyncTest() { DemoCommand command = new DemoCommand(); command.Execute(); // 说明同步调用的情况下,只触发一次同步事件 Assert.AreEqual <int>(1, command.Log.Count); Assert.AreEqual <string>("OnCompleted", command.Log[0]); }