mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 01:11:10 +00:00
Adds tests for the book reading feature
This commit is contained in:
1 parent
f7ccdf3d1c
commit
3a3c0c047c
192 files changed
+14104
-342
No files matched your search
+58
@@ -0,0 +1,58 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Plugins.Contracts.Core.Reading;
|
||||
using Lumina.Plugins.Pdf.Common.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.UnitTests.Common.DependencyInjection;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="PdfServices"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class PdfServicesTests
|
||||
{
|
||||
[Fact]
|
||||
public void AddPdfReader_WhenServicesIsNull_ShouldThrowArgumentNullException()
|
||||
{
|
||||
// Arrange
|
||||
IServiceCollection services = null!;
|
||||
|
||||
// Act
|
||||
Action act = () => services.AddPdfReader(pluginId: Guid.NewGuid());
|
||||
|
||||
// Assert
|
||||
Assert.Throws<ArgumentNullException>(act);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AddPdfReader_WhenCalled_ShouldReturnTheSameServiceCollection()
|
||||
{
|
||||
// Arrange
|
||||
ServiceCollection services = new();
|
||||
|
||||
// Act
|
||||
IServiceCollection result = services.AddPdfReader(pluginId: Guid.NewGuid());
|
||||
|
||||
// Assert
|
||||
Assert.Same(services, result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AddPdfReader_WhenCalled_ShouldRegisterTheBookReaderForKeyedResolution()
|
||||
{
|
||||
// Arrange
|
||||
Guid pluginId = Guid.NewGuid();
|
||||
ServiceCollection services = new();
|
||||
|
||||
// Act
|
||||
services.AddPdfReader(pluginId: pluginId);
|
||||
ServiceProvider serviceProvider = services.BuildServiceProvider();
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(serviceProvider.GetKeyedService<IBookReader>(pluginId));
|
||||
Assert.Null(serviceProvider.GetKeyedService<IBookReader>(Guid.NewGuid()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,241 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Lumina.Plugins.Pdf.Core.Pdf;
|
||||
using Lumina.Plugins.Pdf.Fixtures.Core.Pdf;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Threading;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.UnitTests.Core.Pdf;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="PdfDocumentParser"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class PdfDocumentParserTests : IDisposable
|
||||
{
|
||||
private readonly string _temporaryDirectory = Path.Combine(Path.GetTempPath(), $"lumina-pdf-tests-{Guid.NewGuid():N}");
|
||||
private readonly string _pdfPath;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PdfDocumentParserTests"/> class.
|
||||
/// </summary>
|
||||
public PdfDocumentParserTests()
|
||||
{
|
||||
Directory.CreateDirectory(_temporaryDirectory);
|
||||
_pdfPath = Path.Combine(_temporaryDirectory, "minimal.pdf");
|
||||
TestPdfFileFactory.CreateMinimalPdf(_pdfPath);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenCalledOnPdfWithTextLayer_ShouldReturnDocumentWithTextSections()
|
||||
{
|
||||
// Arrange
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = PdfDocumentParser.Parse(_pdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Equal("minimal", result.Title);
|
||||
Assert.True(result.HasTextContent);
|
||||
ReadingSpineItemDto spineItem = Assert.Single(result.Spine);
|
||||
Assert.Equal("page:1", spineItem.LocationRef);
|
||||
string sectionContent = File.ReadAllText(Path.Combine(workingDirectory, spineItem.RelativeSectionFilePath));
|
||||
Assert.Contains("<p>Hello PDF Page 1</p>", sectionContent, StringComparison.Ordinal);
|
||||
Assert.Empty(result.Resources);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenCalledWithRenderAsImages_ShouldReturnDocumentWithImageSectionsAndNoTextContent()
|
||||
{
|
||||
// Arrange
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = PdfDocumentParser.Parse(_pdfPath, workingDirectory, shouldRenderPdfAsImages: true, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Equal("minimal", result.Title);
|
||||
Assert.False(result.HasTextContent);
|
||||
ReadingSpineItemDto spineItem = Assert.Single(result.Spine);
|
||||
Assert.Equal("page:1", spineItem.LocationRef);
|
||||
KeyValuePair<string, ReadingResourceInfoDto> resource = Assert.Single(result.Resources);
|
||||
Assert.Equal("page:1", resource.Key);
|
||||
Assert.Equal("image/png", resource.Value.MimeType);
|
||||
string sectionContent = File.ReadAllText(Path.Combine(workingDirectory, spineItem.RelativeSectionFilePath));
|
||||
Assert.Contains("data-lumina-resource=\"page:1\"", sectionContent, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenPdfFileDoesNotExist_ShouldThrowFileNotFoundException()
|
||||
{
|
||||
// Arrange
|
||||
string missingPdfPath = Path.Combine(_temporaryDirectory, "missing.pdf");
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
Action act = () => PdfDocumentParser.Parse(missingPdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Throws<FileNotFoundException>(act);
|
||||
}
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
[Fact]
|
||||
public void RenderResource_WhenResourceKeyDoesNotIdentifyAPage_ShouldThrowInvalidDataException()
|
||||
{
|
||||
// Act
|
||||
Action act = () => PdfDocumentParser.RenderResource(_pdfPath, "not-a-page", CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Throws<InvalidDataException>(act);
|
||||
}
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
[Fact]
|
||||
public void RenderResource_WhenResourceKeyNamesAPageBeyondThePageCap_ShouldThrowInvalidDataException()
|
||||
{
|
||||
// Act
|
||||
// The minimal PDF has a single page, but the key is rejected by the page cap before the document is even opened.
|
||||
Action act = () => PdfDocumentParser.RenderResource(_pdfPath, "page:10001", CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Throws<InvalidDataException>(act);
|
||||
}
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
[Fact]
|
||||
public void RenderResource_WhenResourceKeyNamesAPageBeyondTheDocument_ShouldThrowInvalidDataException()
|
||||
{
|
||||
// Act
|
||||
// The minimal PDF has a single page, so page 2 is rejected against the page count of the document without rendering it.
|
||||
Action act = () => PdfDocumentParser.RenderResource(_pdfPath, "page:2", CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Throws<InvalidDataException>(act);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenPdfHasBookmarks_ShouldBuildTableOfContentsFromTheOutline()
|
||||
{
|
||||
// Arrange
|
||||
string outlinedPdfPath = Path.Combine(_temporaryDirectory, "outlined.pdf");
|
||||
TestPdfFileFactory.CreatePdfWithOutline(outlinedPdfPath);
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = PdfDocumentParser.Parse(outlinedPdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
// PdfPig does not surface a bookmark without a title, so only the three titled top-level entries appear.
|
||||
Assert.Equal(3, result.TableOfContents.Count);
|
||||
ReadingTocEntryDto chapterOne = result.TableOfContents[0];
|
||||
Assert.Equal("Chapter One", chapterOne.Label);
|
||||
Assert.Equal("page:1", chapterOne.LocationRef);
|
||||
ReadingTocEntryDto partOne = Assert.Single(chapterOne.Children);
|
||||
Assert.Equal("Part One", partOne.Label);
|
||||
Assert.Equal("page:1", partOne.LocationRef);
|
||||
Assert.Equal("Chapter Two", result.TableOfContents[1].Label);
|
||||
Assert.Equal("page:2", result.TableOfContents[1].LocationRef);
|
||||
// A bookmark pointing at a URI instead of a page yields an entry that is not navigable.
|
||||
Assert.Equal("External Link", result.TableOfContents[2].Label);
|
||||
Assert.Equal(string.Empty, result.TableOfContents[2].LocationRef);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenPdfIsTooLarge_ShouldThrowInvalidDataException()
|
||||
{
|
||||
// Arrange
|
||||
string oversizedPdfPath = Path.Combine(_temporaryDirectory, "oversized.pdf");
|
||||
// A sparse file larger than the 500 MB cap, without allocating disk space.
|
||||
using (FileStream fileStream = new(oversizedPdfPath, FileMode.Create, FileAccess.Write))
|
||||
fileStream.SetLength(501L * 1024 * 1024);
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
Action act = () => PdfDocumentParser.Parse(oversizedPdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Throws<InvalidDataException>(act);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenPdfHasABlankTextLine_ShouldSkipTheBlankLineAndKeepTheOthers()
|
||||
{
|
||||
// Arrange
|
||||
string blankLinePdfPath = Path.Combine(_temporaryDirectory, "blankline.pdf");
|
||||
TestPdfFileFactory.CreatePdfWithBlankLine(blankLinePdfPath);
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = PdfDocumentParser.Parse(blankLinePdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
string sectionContent = File.ReadAllText(Path.Combine(workingDirectory, result.Spine[0].RelativeSectionFilePath));
|
||||
Assert.Contains("<p>First line</p>", sectionContent, StringComparison.Ordinal);
|
||||
Assert.Contains("<p>Third line</p>", sectionContent, StringComparison.Ordinal);
|
||||
Assert.DoesNotContain("<p></p>", sectionContent, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenPdfOutlineIsMalformed_ShouldSkipTheTableOfContentsAndKeepThePages()
|
||||
{
|
||||
// Arrange
|
||||
string malformedOutlinePdfPath = Path.Combine(_temporaryDirectory, "malformed-outline.pdf");
|
||||
TestPdfFileFactory.CreatePdfWithMalformedOutline(malformedOutlinePdfPath);
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = PdfDocumentParser.Parse(malformedOutlinePdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
// The malformed bookmarks are best effort: the table of contents is skipped, but the pages are still readable.
|
||||
Assert.Empty(result.TableOfContents);
|
||||
Assert.Single(result.Spine);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Parse_WhenPdfExceedsThePageCap_ShouldStopAtTheCap()
|
||||
{
|
||||
// Arrange
|
||||
string manyPagesPdfPath = Path.Combine(_temporaryDirectory, "many-pages.pdf");
|
||||
TestPdfFileFactory.CreatePdfWithMorePagesThanAllowed(manyPagesPdfPath);
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = PdfDocumentParser.Parse(manyPagesPdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
// The parser stops enumerating after the page cap instead of reading every page.
|
||||
Assert.Equal(10_000, result.Spine.Count);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ParseAsImages_WhenPdfExceedsThePageCap_ShouldStopAtTheCap()
|
||||
{
|
||||
// Arrange
|
||||
string manyPagesPdfPath = Path.Combine(_temporaryDirectory, "many-pages-images.pdf");
|
||||
TestPdfFileFactory.CreatePdfWithMorePagesThanAllowed(manyPagesPdfPath);
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = PdfDocumentParser.Parse(manyPagesPdfPath, workingDirectory, shouldRenderPdfAsImages: true, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Equal(10_000, result.Spine.Count);
|
||||
Assert.Equal(10_000, result.Resources.Count);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void Dispose()
|
||||
{
|
||||
if (Directory.Exists(_temporaryDirectory))
|
||||
Directory.Delete(_temporaryDirectory, recursive: true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Plugins.Contracts.Common.Models.DTO.Settings;
|
||||
using Lumina.Plugins.Contracts.Core.Reading;
|
||||
using Lumina.Plugins.Pdf.Core;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.UnitTests.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="PdfPlugin"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class PdfPluginTests
|
||||
{
|
||||
private readonly PdfPlugin _sut = new();
|
||||
|
||||
[Fact]
|
||||
public void Id_WhenCalled_ShouldReturnStablePluginIdentifier()
|
||||
{
|
||||
// Act
|
||||
Guid result = _sut.Id;
|
||||
|
||||
// Assert
|
||||
Assert.Equal(PdfPlugin.s_pluginId, result);
|
||||
Assert.Equal(new Guid("c2f9b8f0-5a4b-4e3d-8b2f-7e4a9c1d3e5f"), result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Name_WhenCalled_ShouldReturnPluginDisplayName()
|
||||
{
|
||||
// Act
|
||||
string result = _sut.Name;
|
||||
|
||||
// Assert
|
||||
Assert.Equal("PDF Reader", result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Author_WhenCalled_ShouldReturnPluginAuthor()
|
||||
{
|
||||
// Act
|
||||
string result = _sut.Author;
|
||||
|
||||
// Assert
|
||||
Assert.Equal("Lumina", result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Version_WhenCalled_ShouldReturnPluginVersion()
|
||||
{
|
||||
// Act
|
||||
Version result = _sut.Version;
|
||||
|
||||
// Assert
|
||||
Assert.Equal(new Version(1, 0, 0), result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Description_WhenCalled_ShouldReturnPluginDescription()
|
||||
{
|
||||
// Act
|
||||
string result = _sut.Description;
|
||||
|
||||
// Assert
|
||||
Assert.Equal("Allows reading of PDF format books.", result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetSettingsSchema_WhenCalled_ShouldReturnEmptySettingsSchema()
|
||||
{
|
||||
// Act
|
||||
IReadOnlyList<PluginSettingDescriptorDto> result = _sut.GetSettingsSchema();
|
||||
|
||||
// Assert
|
||||
Assert.Empty(result);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RegisterServices_WhenCalled_ShouldRegisterTheKeyedBookReader()
|
||||
{
|
||||
// Arrange
|
||||
ServiceCollection services = new();
|
||||
|
||||
// Act
|
||||
_sut.RegisterServices(services);
|
||||
ServiceProvider serviceProvider = services.BuildServiceProvider();
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(serviceProvider.GetKeyedService<IBookReader>(PdfPlugin.s_pluginId));
|
||||
Assert.Null(serviceProvider.GetKeyedService<IBookReader>(Guid.NewGuid()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.MediaLibrary;
|
||||
using Lumina.Plugins.Pdf.Core;
|
||||
using Lumina.Plugins.Pdf.Fixtures.Core.Pdf;
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using System.Runtime.Versioning;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.Pdf.UnitTests.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Contains unit tests for the <see cref="PdfReader"/> class.
|
||||
/// </summary>
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class PdfReaderTests : IDisposable
|
||||
{
|
||||
private readonly string _temporaryDirectory = Path.Combine(Path.GetTempPath(), $"lumina-pdf-reader-{Guid.NewGuid():N}");
|
||||
private readonly string _pdfPath;
|
||||
private readonly PdfReader _sut = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PdfReaderTests"/> class.
|
||||
/// </summary>
|
||||
public PdfReaderTests()
|
||||
{
|
||||
Directory.CreateDirectory(_temporaryDirectory);
|
||||
_pdfPath = Path.Combine(_temporaryDirectory, "minimal.pdf");
|
||||
TestPdfFileFactory.CreateMinimalPdf(_pdfPath);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SupportedExtensions_WhenAccessed_ShouldOnlyContainPdf()
|
||||
{
|
||||
// Assert
|
||||
Assert.Equal([".pdf"], _sut.SupportedExtensions);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SupportedLibraryTypes_WhenAccessed_ShouldContainEBookAndBook()
|
||||
{
|
||||
// Assert
|
||||
Assert.Equal([LibraryType.EBook, LibraryType.Book], _sut.SupportedLibraryTypes);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task OpenAsync_WhenCalled_ShouldReturnTheParsedDocument()
|
||||
{
|
||||
// Arrange
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
ReadingDocumentDto result = await _sut.OpenAsync(_pdfPath, workingDirectory, shouldRenderPdfAsImages: false, CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.Equal("minimal", result.Title);
|
||||
Assert.Single(result.Spine);
|
||||
}
|
||||
|
||||
[SupportedOSPlatform("windows")]
|
||||
[Fact]
|
||||
public async Task GetResourceAsync_WhenCalledForAPage_ShouldRenderThePageImage()
|
||||
{
|
||||
// Arrange
|
||||
string workingDirectory = Path.Combine(_temporaryDirectory, "work");
|
||||
|
||||
// Act
|
||||
byte[] result = await _sut.GetResourceAsync(_pdfPath, workingDirectory, "page:1", CancellationToken.None);
|
||||
|
||||
// Assert
|
||||
Assert.NotNull(result);
|
||||
Assert.NotEmpty(result);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public void Dispose()
|
||||
{
|
||||
if (Directory.Exists(_temporaryDirectory))
|
||||
Directory.Delete(_temporaryDirectory, recursive: true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<AssemblyAttribute Include="Xunit.CollectionBehaviorAttribute">
|
||||
<_Parameter1>DisableTestParallelization = true</_Parameter1>
|
||||
<_Parameter1_IsLiteral>true</_Parameter1_IsLiteral>
|
||||
</AssemblyAttribute>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AutoFixture.AutoNSubstitute" />
|
||||
<PackageReference Include="AutoFixture.Xunit2" />
|
||||
<PackageReference Include="Bogus" />
|
||||
<PackageReference Include="coverlet.collector">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" />
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="NSubstitute" />
|
||||
<PackageReference Include="xunit" />
|
||||
<PackageReference Include="xunit.runner.visualstudio">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="Xunit" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\plugins\Lumina.Plugins.Pdf\Lumina.Plugins.Pdf.csproj" />
|
||||
<ProjectReference Include="..\..\..\src\Lumina.Plugins.Contracts\Lumina.Plugins.Contracts.csproj" />
|
||||
<ProjectReference Include="..\..\Common\Lumina.Contracts.Fixtures\Lumina.Contracts.Fixtures.csproj" />
|
||||
<ProjectReference Include="..\..\Common\Lumina.Plugins.Pdf.Fixtures\Lumina.Plugins.Pdf.Fixtures.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in new issue
Block a user