refactor: extract tests to library test project

This commit is contained in:
Stevan Freeborn
2025-05-29 00:09:19 -05:00
parent 6479531126
commit ce45893caa
25 changed files with 226 additions and 34 deletions
@@ -0,0 +1,28 @@
namespace StevesBot.Library.Tests.Unit;
public class DiscordMessageReferenceTests
{
[Fact]
public void Constructor_WhenCalled_ItShouldReturnAnInstance()
{
var type = 1;
var messageId = "message_id";
var channelId = "channel_id";
var guildId = "guild_id";
var failIfNotExists = true;
var result = new DiscordMessageReference(
type,
messageId,
channelId,
guildId,
failIfNotExists
);
result.Type.Should().Be(type);
result.MessageId.Should().Be(messageId);
result.ChannelId.Should().Be(channelId);
result.GuildId.Should().Be(guildId);
result.FailIfNotExists.Should().Be(failIfNotExists);
}
}