Renames project paths from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:34:43 +02:00
1 parent ce6fddb4c9
commit 0f659a4877
6450 files changed

No files matched your search

@@ -0,0 +1,30 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Responses.Common;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
#endregion
namespace Lumina.Contracts.UnitTests.Responses.Common;
/// <summary>
/// Contains unit tests for the <see cref="PaginatedResponse{TData}"/> record.
/// </summary>
[ExcludeFromCodeCoverage]
public class PaginatedResponseTests
{
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true
};
[Fact]
public void Deserialize_WhenDataIsMissing_ShouldThrowJsonException()
{
// Arrange
string json = """{ "currentPage": 1, "perPage": 10, "count": 0, "numberOfPages": 0 }""";
// Act & Assert
Assert.Throws<JsonException>(() => JsonSerializer.Deserialize<PaginatedResponse<int>>(json, _jsonOptions));
}
}
@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.Fixtures.Core.Responses.FileSystemManagement.Common;
using Lumina.Contracts.Responses.FileSystemManagement.Common;
using System.Diagnostics.CodeAnalysis;
#endregion
namespace Lumina.Contracts.UnitTests.Responses.FileSystemManagement.Common;
/// <summary>
/// Contains unit tests for the <see cref="FileSystemTreeNodeResponse"/> class.
/// </summary>
[ExcludeFromCodeCoverage]
public class FileSystemTreeNodeResponseTests
{
private readonly FileSystemTreeNodeResponseFixture _fileSystemTreeNodeResponseFixture = new();
[Fact]
public void Constructor_WhenInstantiatingNode_ShouldInitializeEmptyChildren()
{
// Act
FileSystemTreeNodeResponse sut = _fileSystemTreeNodeResponseFixture.Create(maxDepth: 0);
// Assert
Assert.NotNull(sut.Children);
Assert.Empty(sut.Children);
}
}