src/Apworks/Events/EventAggregator.cs中142和143行有误
Opened this issue · 0 comments
anycmd commented
[TestMethod]
public void ApworksTest()
{
Dictionary<Type, List<object>> eventHandlers = new Dictionary<Type, List<object>>
{
{typeof (int), null}
};
var handlers = eventHandlers[typeof (int)];
if (handlers != null)
{
}
else
{
handlers = new List<object>();
}
Assert.IsNull(eventHandlers[typeof(int)]); // 断言正确
}