Skip to content

Commit

Permalink
Use new single line class feature from C# 12 where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
BrammyS committed Nov 15, 2023
1 parent 9c70cbf commit a5259f3
Show file tree
Hide file tree
Showing 43 changed files with 43 additions and 129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Application;

[TestFixture]
public class DiscordApplicationCommandDataTests : JsonTestBase<DiscordApplicationCommandData>
{
}
public class DiscordApplicationCommandDataTests : JsonTestBase<DiscordApplicationCommandData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Application;

[TestFixture]
public class DiscordApplicationCommandOptionChoiceDataTests : JsonTestBase<DiscordApplicationCommandOptionChoiceData>
{
}
public class DiscordApplicationCommandOptionChoiceDataTests : JsonTestBase<DiscordApplicationCommandOptionChoiceData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Application;

[TestFixture]
public class DiscordApplicationCommandOptionDataTests : JsonTestBase<DiscordApplicationCommandOptionData>
{
}
public class DiscordApplicationCommandOptionDataTests : JsonTestBase<DiscordApplicationCommandOptionData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels;

[TestFixture]
public class DiscordEmojiDataTests : JsonTestBase<DiscordEmojiData>
{
}
public class DiscordEmojiDataTests : JsonTestBase<DiscordEmojiData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels;

[TestFixture]
public class DiscordGatewayBotDataTests : JsonTestBase<DiscordGatewayBotData>
{
}
public class DiscordGatewayBotDataTests : JsonTestBase<DiscordGatewayBotData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels;

[TestFixture]
public class DiscordPermissionTests : JsonTestBase<DiscordPermission>
{
}
public class DiscordPermissionTests : JsonTestBase<DiscordPermission>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels;

[TestFixture]
public class DiscordSessionStartLimitDataTests : JsonTestBase<DiscordSessionStartLimitData>
{
}
public class DiscordSessionStartLimitDataTests : JsonTestBase<DiscordSessionStartLimitData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedAuthorDataTests : JsonTestBase<DiscordEmbedAuthorData>
{
}
public class DiscordEmbedAuthorDataTests : JsonTestBase<DiscordEmbedAuthorData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedDataTests : JsonTestBase<DiscordEmbedData>
{
}
public class DiscordEmbedDataTests : JsonTestBase<DiscordEmbedData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedFieldDataTests : JsonTestBase<DiscordEmbedFieldData>
{
}
public class DiscordEmbedFieldDataTests : JsonTestBase<DiscordEmbedFieldData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedFooterDataTests : JsonTestBase<DiscordEmbedFooterData>
{
}
public class DiscordEmbedFooterDataTests : JsonTestBase<DiscordEmbedFooterData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedImageDataTests : JsonTestBase<DiscordEmbedImageData>
{
}
public class DiscordEmbedImageDataTests : JsonTestBase<DiscordEmbedImageData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedProviderDataTests : JsonTestBase<DiscordEmbedProviderData>
{
}
public class DiscordEmbedProviderDataTests : JsonTestBase<DiscordEmbedProviderData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedThumbnailDataTests : JsonTestBase<DiscordEmbedThumbnailData>
{
}
public class DiscordEmbedThumbnailDataTests : JsonTestBase<DiscordEmbedThumbnailData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Embed;

[TestFixture]
public class DiscordEmbedVideoDataTests : JsonTestBase<DiscordEmbedVideoData>
{
}
public class DiscordEmbedVideoDataTests : JsonTestBase<DiscordEmbedVideoData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Errors;

[TestFixture]
public class DiscordJsonErrorDataTests : JsonTestBase<DiscordJsonErrorData>
{
}
public class DiscordJsonErrorDataTests : JsonTestBase<DiscordJsonErrorData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Errors;

[TestFixture]
public class PropertyErrorInfoDataTests : JsonTestBase<PropertyErrorInfoData>
{
}
public class PropertyErrorInfoDataTests : JsonTestBase<PropertyErrorInfoData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildDataTests : JsonTestBase<DiscordGuildData>
{
}
public class DiscordGuildDataTests : JsonTestBase<DiscordGuildData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildDefaultMessageNotificationLevelTests : JsonTestBase<DiscordGuildDefaultMessageNotificationLevel>
{
}
public class DiscordGuildDefaultMessageNotificationLevelTests : JsonTestBase<DiscordGuildDefaultMessageNotificationLevel>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildExplicitContentFilterLevelTests : JsonTestBase<DiscordGuildExplicitContentFilterLevel>
{
}
public class DiscordGuildExplicitContentFilterLevelTests : JsonTestBase<DiscordGuildExplicitContentFilterLevel>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildMemberDataTests : JsonTestBase<DiscordGuildMemberData>
{
}
public class DiscordGuildMemberDataTests : JsonTestBase<DiscordGuildMemberData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildMfaLevelTests : JsonTestBase<DiscordGuildMfaLevel>
{
}
public class DiscordGuildMfaLevelTests : JsonTestBase<DiscordGuildMfaLevel>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildNsfwLevelTests : JsonTestBase<DiscordGuildNsfwLevel>
{
}
public class DiscordGuildNsfwLevelTests : JsonTestBase<DiscordGuildNsfwLevel>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildPremiumTierTests : JsonTestBase<DiscordGuildPremiumTier>
{
}
public class DiscordGuildPremiumTierTests : JsonTestBase<DiscordGuildPremiumTier>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildPreviewDataTests : JsonTestBase<DiscordGuildPreviewData>
{
}
public class DiscordGuildPreviewDataTests : JsonTestBase<DiscordGuildPreviewData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildRoleDataTests : JsonTestBase<DiscordGuildRoleData>
{
}
public class DiscordGuildRoleDataTests : JsonTestBase<DiscordGuildRoleData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildVerificationLevelTests : JsonTestBase<DiscordGuildVerificationLevel>
{
}
public class DiscordGuildVerificationLevelTests : JsonTestBase<DiscordGuildVerificationLevel>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildWelcomeChannelDataTests : JsonTestBase<DiscordGuildWelcomeChannelData>
{
}
public class DiscordGuildWelcomeChannelDataTests : JsonTestBase<DiscordGuildWelcomeChannelData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordGuildWelcomeScreenDataTests : JsonTestBase<DiscordGuildWelcomeScreenData>
{
}
public class DiscordGuildWelcomeScreenDataTests : JsonTestBase<DiscordGuildWelcomeScreenData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Guild;

[TestFixture]
public class DiscordSystemChannelFlagsTests : JsonTestBase<DiscordSystemChannelFlags>
{
}
public class DiscordSystemChannelFlagsTests : JsonTestBase<DiscordSystemChannelFlags>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Interaction;

[TestFixture]
public class DiscordInteractionCommandCallbackDataTests : JsonTestBase<DiscordInteractionCallbackData>
{
}
public class DiscordInteractionCommandCallbackDataTests : JsonTestBase<DiscordInteractionCallbackData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Interaction;

[TestFixture]
public class DiscordInteractionCommandDataTests : JsonTestBase<DiscordInteractionRequestData>
{
}
public class DiscordInteractionCommandDataTests : JsonTestBase<DiscordInteractionRequestData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Interaction;

[TestFixture]
public class DiscordInteractionCommandOptionDataTests : JsonTestBase<DiscordInteractionOptionData>
{
}
public class DiscordInteractionCommandOptionDataTests : JsonTestBase<DiscordInteractionOptionData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Interaction;

[TestFixture]
public class DiscordInteractionCommandResolvedDataTests : JsonTestBase<DiscordInteractionResolvedData>
{
}
public class DiscordInteractionCommandResolvedDataTests : JsonTestBase<DiscordInteractionResolvedData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Interaction;

[TestFixture]
public class DiscordInteractionDataTests : JsonTestBase<DiscordInteractionData>
{
}
public class DiscordInteractionDataTests : JsonTestBase<DiscordInteractionData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.DataModels.Interaction;

[TestFixture]
public class DiscordInteractionResponseDataTests : JsonTestBase<DiscordInteractionResponseData>
{
}
public class DiscordInteractionResponseDataTests : JsonTestBase<DiscordInteractionResponseData>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.Params;

[TestFixture]
public class DiscordCreateApplicationCommandTests : JsonTestBase<DiscordCreateApplicationCommand>
{
}
public class DiscordCreateApplicationCommandTests : JsonTestBase<DiscordCreateApplicationCommand>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.Params.Guild;

[TestFixture]
public class DiscordAddGuildMemberTests : JsonTestBase<DiscordAddGuildMember>
{
}
public class DiscordAddGuildMemberTests : JsonTestBase<DiscordAddGuildMember>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.Params.Guild;

[TestFixture]
public class DiscordCreateGuildRoleTests : JsonTestBase<DiscordCreateGuildRole>
{
}
public class DiscordCreateGuildRoleTests : JsonTestBase<DiscordCreateGuildRole>;
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
namespace Color_Chan.Discord.Core.Tests.Common.API.Params.Guild;

[TestFixture]
public class DiscordModifyCurrentUserNickTests : JsonTestBase<DiscordModifyCurrentUserNick>
{
}
public class DiscordModifyCurrentUserNickTests : JsonTestBase<DiscordModifyCurrentUserNick>;
Loading

0 comments on commit a5259f3

Please sign in to comment.