Removes the redundant contract and enumeration tests

This commit is contained in:
BinaryAlley committed 2026-09-26 17:56:57 +03:00
1 parent 4dce426b38
commit dc2692e208
127 files changed
-6721

No files matched your search

@@ -1,7 +1,6 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.DTO.Common.Pagination;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
#endregion
namespace Lumina.Contracts.UnitTests.DTO.Common.Pagination;
@@ -12,11 +11,6 @@ namespace Lumina.Contracts.UnitTests.DTO.Common.Pagination;
[ExcludeFromCodeCoverage]
public class PaginationDataDtoTests
{
private readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true
};
[Fact]
public void CurrentPage_WhenNotSet_ShouldDefaultToOne()
{
@@ -98,20 +92,4 @@ public class PaginationDataDtoTests
// Assert
Assert.Equal(25, sut.PerPage);
}
[Fact]
public void RoundTrip_WhenSerializingValidPaginationData_ShouldPreserveValues()
{
// Arrange
PaginationDataDto expected = new() { CurrentPage = 3, PerPage = 50 };
// Act
string json = JsonSerializer.Serialize(expected, _jsonOptions);
PaginationDataDto? actual = JsonSerializer.Deserialize<PaginationDataDto>(json, _jsonOptions);
// Assert
Assert.NotNull(actual);
Assert.Equal(expected.CurrentPage, actual.CurrentPage);
Assert.Equal(expected.PerPage, actual.PerPage);
}
}