Files
Nexus.Reader/tests/NexusReader.Application.Tests/Services/EpubMetadataExtractorTests.cs
T
mjasin e1f1a4b3cb refactor: complete web project consolidation and stabilize identity flow
- 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
2026-05-11 20:42:57 +02:00

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();
}
}