tests: add tests

This commit is contained in:
Stevan Freeborn
2025-05-09 18:28:40 -05:00
parent 4bfe705fb6
commit c16e8754db
12 changed files with 133 additions and 26 deletions
@@ -0,0 +1,19 @@
namespace StevesBot.Worker.Tests.Unit;
public class DiscordOpCodesTests
{
[Theory]
[MemberData(nameof(TestData))]
public void OpCode_ShouldHaveCorrectValue(int opCode, int expectedValue)
{
opCode.Should().Be(expectedValue);
}
public static TheoryData<int, int> TestData => new()
{
{ DiscordOpCodes.Dispatch, 0 },
{ DiscordOpCodes.Heartbeat, 1 },
{ DiscordOpCodes.Hello, 10 },
{ DiscordOpCodes.HeartbeatAck, 11 }
};
}