Skip to content

Commit

Permalink
Add missing event tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihlus committed May 4, 2024
1 parent a627965 commit 04ea0b1
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// GuildScheduledEventUserAddTests.cs
//
// Author:
// Jarl Gullberg <[email protected]>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

using Remora.Discord.API.Abstractions.Gateway.Events;
using Remora.Discord.API.Tests.TestBases;

namespace Remora.Discord.API.Tests.Gateway.Events;

/// <summary>
/// Tests the Hello event.
/// </summary>
public class GuildScheduledEventUserAddTests : GatewayEventTestBase<IGuildScheduledEventUserAdd>
{
/// <summary>
/// Initializes a new instance of the <see cref="GuildScheduledEventUserAddTests"/> class.
/// </summary>
/// <param name="fixture">The test fixture.</param>
public GuildScheduledEventUserAddTests(JsonBackedTypeTestFixture fixture)
: base(fixture)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// GuildScheduledEventUserRemoveTests.cs
//
// Author:
// Jarl Gullberg <[email protected]>
//
// Copyright (c) Jarl Gullberg
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//

using Remora.Discord.API.Abstractions.Gateway.Events;
using Remora.Discord.API.Tests.TestBases;

namespace Remora.Discord.API.Tests.Gateway.Events;

/// <summary>
/// Tests the Hello event.
/// </summary>
public class GuildScheduledEventUserRemoveTests : GatewayEventTestBase<IGuildScheduledEventUserRemove>
{
/// <summary>
/// Initializes a new instance of the <see cref="GuildScheduledEventUserRemoveTests"/> class.
/// </summary>
/// <param name="fixture">The test fixture.</param>
public GuildScheduledEventUserRemoveTests(JsonBackedTypeTestFixture fixture)
: base(fixture)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"t": "GUILD_SCHEDULED_EVENT_USER_ADD",
"s": 5,
"op": 0,
"d": {
"guild_scheduled_event_id": "999999999999999999",
"user_id": "999999999999999999",
"guild_id": "999999999999999999"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"t": "GUILD_SCHEDULED_EVENT_USER_REMOVE",
"s": 5,
"op": 0,
"d": {
"guild_scheduled_event_id": "999999999999999999",
"user_id": "999999999999999999",
"guild_id": "999999999999999999"
}
}

0 comments on commit 04ea0b1

Please sign in to comment.