Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anycmd opened this issue Nov 10, 2015 · 0 comments
Open

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

anycmd opened this issue Nov 10, 2015 · 0 comments

Comments

@anycmd
Copy link

anycmd commented Nov 10, 2015

[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)]); // 断言正确
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant