Skip to content

src/Apworks/Events/EventAggregator.cs中142和143行有误 #5

@anycmd

Description

@anycmd
[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)]); // 断言正确
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions