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