Fixed minor event test issue

This commit is contained in:
Brandon Smith
2015-08-11 11:25:40 -03:00
parent 1d222e9f3e
commit 98687c80a1

View File

@@ -53,7 +53,7 @@ namespace Discord.Net.Tests
[TestMethod] [TestMethod]
public void TestCreateVoiceRoom() public void TestCreateVoiceRoom()
=> TestCreateRoom(ChannelTypes.Voice); => TestCreateRoom(ChannelTypes.Voice);
private void TestCreateRoom(string type) private void TestCreateRoom(string type)
{ {
Channel channel = null; Channel channel = null;
string name = $"test_{_random.Next()}"; string name = $"test_{_random.Next()}";
@@ -92,7 +92,7 @@ namespace Discord.Net.Tests
EventHandler<TArgs> handler = (s, e) => EventHandler<TArgs> handler = (s, e) =>
{ {
if (test != null) if (test != null)
result = test(s, e); result |= test(s, e);
else else
result = true; result = true;
}; };