e1f1a4b3cb
- Finalized move from NexusReader.Web.New to NexusReader.Web - Implemented robust ServerIdentityService with UserManager and SignInManager - Updated UI components to handle authentication state synchronization via force reload - Refined BookIngestionModal styling following Nexus Neon design system - Resolved namespace conflicts and updated CI/CD/VS Code configurations - Fixes #33
26 lines
660 B
C#
26 lines
660 B
C#
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using FluentAssertions;
|
|
using NexusReader.Infrastructure.Services;
|
|
using Xunit;
|
|
|
|
namespace NexusReader.Application.Tests.Services;
|
|
|
|
public class EpubMetadataExtractorTests
|
|
{
|
|
[Fact]
|
|
public async Task ExtractMetadataAsync_WithInvalidStream_ReturnsFailure()
|
|
{
|
|
// Arrange
|
|
var extractor = new EpubMetadataExtractor();
|
|
using var stream = new MemoryStream(new byte[] { 0, 1, 2, 3 });
|
|
|
|
// Act
|
|
var result = await extractor.ExtractMetadataAsync(stream);
|
|
|
|
// Assert
|
|
result.IsSuccess.Should().BeFalse();
|
|
result.Errors.Should().NotBeEmpty();
|
|
}
|
|
}
|