Refactor code structure and optimize performance across multiple modules

This commit is contained in:
StellaOps Bot
2025-12-26 20:03:22 +02:00
parent c786faae84
commit b4fc66feb6
3353 changed files with 88254 additions and 1590657 deletions

View File

@@ -2,11 +2,13 @@ using FluentAssertions;
using Microsoft.Extensions.Logging.Abstractions;
using Xunit;
using StellaOps.TestKit;
namespace StellaOps.Cryptography.PluginLoader.Tests;
public class CryptoPluginLoaderTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Constructor_WithNullConfiguration_ThrowsArgumentNullException()
{
// Arrange & Act
@@ -17,7 +19,8 @@ public class CryptoPluginLoaderTests
.WithParameterName("configuration");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void LoadProviders_WithEmptyEnabledList_ReturnsEmptyCollection()
{
// Arrange
@@ -38,7 +41,8 @@ public class CryptoPluginLoaderTests
providers.Should().BeEmpty();
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void LoadProviders_WithMissingManifest_ThrowsFileNotFoundException()
{
// Arrange
@@ -58,7 +62,8 @@ public class CryptoPluginLoaderTests
.WithMessage("*manifest.json*");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void LoadProviders_WithRequireAtLeastOneAndNoProviders_ThrowsCryptoPluginLoadException()
{
// Arrange
@@ -80,7 +85,8 @@ public class CryptoPluginLoaderTests
.WithMessage("*at least one provider*");
}
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void LoadProviders_WithDisabledPattern_FiltersMatchingPlugins()
{
// Arrange
@@ -115,7 +121,8 @@ public class CryptoPluginLoaderTests
public class CryptoPluginConfigurationTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void Constructor_SetsDefaultValues()
{
// Arrange & Act
@@ -133,7 +140,8 @@ public class CryptoPluginConfigurationTests
public class CryptoPluginManifestTests
{
[Fact]
[Trait("Category", TestCategories.Unit)]
[Fact]
public void CryptoPluginDescriptor_WithRequiredProperties_IsValid()
{
// Arrange & Act

View File

@@ -22,6 +22,7 @@
<ItemGroup>
<ProjectReference Include="..\StellaOps.Cryptography.PluginLoader\StellaOps.Cryptography.PluginLoader.csproj" />
<ProjectReference Include="../StellaOps.TestKit/StellaOps.TestKit.csproj" />
</ItemGroup>
</Project>