Fixed minor event test issue
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user