mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Hardens test assertions and adds missing test coverage.
This commit is contained in:
1 parent
6b86fd5805
commit
1189bbaf36
489 files changed
+39982
-512
No files matched your search
+4
-2
@@ -6,6 +6,7 @@ using Lumina.Domain.Common.Primitives;
|
||||
using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate;
|
||||
using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities;
|
||||
using Lumina.Domain.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Services;
|
||||
using Lumina.Domain.Fixtures.Core.BoundedContexts.FileSystemManagementBoundedContext.FileSystemManagementAggregate.Entities;
|
||||
using Lumina.Domain.SharedKernel.Common.Enums.FileSystem;
|
||||
using NSubstitute;
|
||||
using System.Collections.Generic;
|
||||
@@ -26,6 +27,7 @@ public class GetDrivesQueryHandlerTests
|
||||
private readonly IDriveService _mockDriveService;
|
||||
private readonly GetDrivesQueryHandler _sut;
|
||||
private readonly GetDrivesQueryFixture _getDrivesQueryFixture = new();
|
||||
private readonly WindowsRootItemFixture _windowsRootItemFixture = new();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetDrivesQueryHandlerTests"/> class.
|
||||
@@ -44,8 +46,8 @@ public class GetDrivesQueryHandlerTests
|
||||
|
||||
IEnumerable<FileSystemItem> drives =
|
||||
[
|
||||
WindowsRootItem.Create("C:\\", "C:").Value,
|
||||
WindowsRootItem.Create("D:\\", "D:").Value
|
||||
_windowsRootItemFixture.Create(path: "C:\\", name: "C:"),
|
||||
_windowsRootItemFixture.Create(path: "D:\\", name: "D:")
|
||||
];
|
||||
|
||||
_mockDriveService.GetDrives()
|
||||
|
||||
Reference in new issue
Block a user