public void CanHandleGroupMessages() { var handler = new GroupHandler(); bool result = false; var messageTestCases = new List <EventMessageBase> { new GroupArchive { Type = EventType.GroupArchive }, new GroupJoined { Type = EventType.GroupJoined }, new GroupLeft { Type = EventType.GroupLeft }, new GroupMarked { Type = EventType.GroupMarked }, new GroupRename { Type = EventType.GroupRename }, new GroupUnarchive { Type = EventType.GroupUnarchive } }; foreach (var messageTestCase in messageTestCases) { result = handler.CanHandle(messageTestCase); Assert.True(result); } }