mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Renames test methods to match SUT method names.
This commit is contained in:
1 parent
2d1c6b1ab8
commit
ac318762bf
35 files changed
+154
-154
No files matched your search
+4
-4
@@ -46,7 +46,7 @@ public class GetDirectoriesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQueryWithoutFilesIncluded_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQueryWithoutFilesIncluded_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetDirectoriesQuery getDirectoriesQuery = GetDirectoriesQueryFixture.CreateGetDirectoriesQuery(false);
|
||||
@@ -80,7 +80,7 @@ public class GetDirectoriesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQueryWithFilesIncluded_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQueryWithFilesIncluded_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetDirectoriesQuery getDirectoriesQuery = GetDirectoriesQueryFixture.CreateGetDirectoriesQuery(true);
|
||||
@@ -114,7 +114,7 @@ public class GetDirectoriesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenDirectoryServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenDirectoryServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
GetDirectoriesQuery query = _fixture.Create<GetDirectoriesQuery>();
|
||||
@@ -132,7 +132,7 @@ public class GetDirectoriesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenDirectoryServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
public async Task HandleAsync_WhenDirectoryServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetDirectoriesQuery query = _fixture.Create<GetDirectoriesQuery>();
|
||||
|
||||
+3
-3
@@ -39,7 +39,7 @@ public class GetDrivesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalled_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalled_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetDrivesQuery getDrivesQuery = _fixture.Create<GetDrivesQuery>();
|
||||
@@ -81,7 +81,7 @@ public class GetDrivesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenDriveServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenDriveServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
GetDrivesQuery query = _fixture.Create<GetDrivesQuery>();
|
||||
@@ -99,7 +99,7 @@ public class GetDrivesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenDriveServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
public async Task HandleAsync_WhenDriveServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetDrivesQuery query = _fixture.Create<GetDrivesQuery>();
|
||||
|
||||
+4
-4
@@ -40,7 +40,7 @@ public class GetFileSystemQueryHandlerTests
|
||||
[Theory]
|
||||
[InlineData(PlatformType.Unix)]
|
||||
[InlineData(PlatformType.Windows)]
|
||||
public async Task Handle_WhenCalled_ShouldReturnCorrectFileSystemTypeResponse(PlatformType platformType)
|
||||
public async Task HandleAsync_WhenCalled_ShouldReturnCorrectFileSystemTypeResponse(PlatformType platformType)
|
||||
{
|
||||
// Arrange
|
||||
GetFileSystemQuery query = _fixture.Create<GetFileSystemQuery>();
|
||||
@@ -56,7 +56,7 @@ public class GetFileSystemQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalled_ShouldReturnValueTaskResult()
|
||||
public async Task HandleAsync_WhenCalled_ShouldReturnValueTaskResult()
|
||||
{
|
||||
// Arrange
|
||||
GetFileSystemQuery query = _fixture.Create<GetFileSystemQuery>();
|
||||
@@ -73,7 +73,7 @@ public class GetFileSystemQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalled_ShouldNotDependOnQueryContent()
|
||||
public async Task HandleAsync_WhenCalled_ShouldNotDependOnQueryContent()
|
||||
{
|
||||
// Arrange
|
||||
GetFileSystemQuery query1 = _fixture.Create<GetFileSystemQuery>();
|
||||
@@ -90,7 +90,7 @@ public class GetFileSystemQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalled_ShouldIgnoreCancellationToken()
|
||||
public async Task HandleAsync_WhenCalled_ShouldIgnoreCancellationToken()
|
||||
{
|
||||
// Arrange
|
||||
GetFileSystemQuery query = _fixture.Create<GetFileSystemQuery>();
|
||||
|
||||
+4
-4
@@ -46,7 +46,7 @@ public class GetFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQueryWithoutHiddenFiles_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQueryWithoutHiddenFiles_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetFilesQuery getFilesQuery = GetFilesQueryFixture.CreateGetFilesQuery(false);
|
||||
@@ -80,7 +80,7 @@ public class GetFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQueryWithHiddenFiles_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQueryWithHiddenFiles_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetFilesQuery getFilesQuery = GetFilesQueryFixture.CreateGetFilesQuery(true);
|
||||
@@ -114,7 +114,7 @@ public class GetFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenFileServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenFileServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
GetFilesQuery query = _fixture.Create<GetFilesQuery>();
|
||||
@@ -132,7 +132,7 @@ public class GetFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenFileServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
public async Task HandleAsync_WhenFileServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetFilesQuery query = _fixture.Create<GetFilesQuery>();
|
||||
|
||||
+4
-4
@@ -46,7 +46,7 @@ public class GetTreeFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQueryWithoutHiddenFiles_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQueryWithoutHiddenFiles_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetTreeFilesQuery getFilesQuery = GetTreeFilesQueryFixture.CreateGetFilesQuery(false);
|
||||
@@ -81,7 +81,7 @@ public class GetTreeFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQueryWithHiddenFiles_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQueryWithHiddenFiles_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetTreeFilesQuery getFilesQuery = GetTreeFilesQueryFixture.CreateGetFilesQuery(true);
|
||||
@@ -116,7 +116,7 @@ public class GetTreeFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenFileServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenFileServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
GetTreeFilesQuery query = _fixture.Create<GetTreeFilesQuery>();
|
||||
@@ -134,7 +134,7 @@ public class GetTreeFilesQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenFileServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
public async Task HandleAsync_WhenFileServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetTreeFilesQuery query = _fixture.Create<GetTreeFilesQuery>();
|
||||
|
||||
+3
-3
@@ -39,7 +39,7 @@ public class CombinePathCommandHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidCommand_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidCommand_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
CombinePathCommand combinePathCommand = CombinePathCommandFixture.CreateCombinePathCommand();
|
||||
@@ -59,7 +59,7 @@ public class CombinePathCommandHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
CombinePathCommand command = _fixture.Create<CombinePathCommand>();
|
||||
@@ -77,7 +77,7 @@ public class CombinePathCommandHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsEmptyString_ShouldReturnSuccessResultWithEmptyPath()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsEmptyString_ShouldReturnSuccessResultWithEmptyPath()
|
||||
{
|
||||
// Arrange
|
||||
CombinePathCommand command = _fixture.Create<CombinePathCommand>();
|
||||
|
||||
+3
-3
@@ -46,7 +46,7 @@ public class SplitPathCommandHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidCommand_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidCommand_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
SplitPathCommand splitPathCommand = SplitPathCommandFixture.CreateSplitPathCommand();
|
||||
@@ -73,7 +73,7 @@ public class SplitPathCommandHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
SplitPathCommand command = _fixture.Create<SplitPathCommand>();
|
||||
@@ -91,7 +91,7 @@ public class SplitPathCommandHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
SplitPathCommand command = _fixture.Create<SplitPathCommand>();
|
||||
|
||||
+6
-6
@@ -35,7 +35,7 @@ public class CheckPathExistsQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathExistsAndIsNotHidden_ShouldReturnTrueResponse()
|
||||
public async Task HandleAsync_WhenPathExistsAndIsNotHidden_ShouldReturnTrueResponse()
|
||||
{
|
||||
// Arrange
|
||||
CheckPathExistsQuery query = CheckPathExistsQueryFixture.CreateCheckPathExistsQuery();
|
||||
@@ -51,7 +51,7 @@ public class CheckPathExistsQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathExistsAndIsHiddenAndIncludeHiddenElementsIsTrue_ShouldReturnTrueResponse()
|
||||
public async Task HandleAsync_WhenPathExistsAndIsHiddenAndIncludeHiddenElementsIsTrue_ShouldReturnTrueResponse()
|
||||
{
|
||||
// Arrange
|
||||
CheckPathExistsQuery query = CheckPathExistsQueryFixture.CreateCheckPathExistsQuery(true);
|
||||
@@ -67,7 +67,7 @@ public class CheckPathExistsQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathExistsAndIsHiddenAndIncludeHiddenElementsIsFalse_ShouldReturnFalseResponse()
|
||||
public async Task HandleAsync_WhenPathExistsAndIsHiddenAndIncludeHiddenElementsIsFalse_ShouldReturnFalseResponse()
|
||||
{
|
||||
// Arrange
|
||||
CheckPathExistsQuery query = CheckPathExistsQueryFixture.CreateCheckPathExistsQuery(false);
|
||||
@@ -83,7 +83,7 @@ public class CheckPathExistsQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathDoesNotExist_ShouldReturnFalseResponse()
|
||||
public async Task HandleAsync_WhenPathDoesNotExist_ShouldReturnFalseResponse()
|
||||
{
|
||||
// Arrange
|
||||
CheckPathExistsQuery query = CheckPathExistsQueryFixture.CreateCheckPathExistsQuery();
|
||||
@@ -99,7 +99,7 @@ public class CheckPathExistsQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithNullPath_ShouldStillCallPathService()
|
||||
public async Task HandleAsync_WhenCalledWithNullPath_ShouldStillCallPathService()
|
||||
{
|
||||
// Arrange
|
||||
CheckPathExistsQuery query = new(null!, false);
|
||||
@@ -115,7 +115,7 @@ public class CheckPathExistsQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCancellationRequested_ShouldStillCompleteOperation()
|
||||
public async Task HandleAsync_WhenCancellationRequested_ShouldStillCompleteOperation()
|
||||
{
|
||||
// Arrange
|
||||
CheckPathExistsQuery query = CheckPathExistsQueryFixture.CreateCheckPathExistsQuery();
|
||||
|
||||
+3
-3
@@ -42,7 +42,7 @@ public class GetPathParentQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQuery_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQuery_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathParentQuery query = GetPathParentQueryFixture.CreateGetPathParentQuery();
|
||||
@@ -66,7 +66,7 @@ public class GetPathParentQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathParentQuery query = _fixture.Create<GetPathParentQuery>();
|
||||
@@ -84,7 +84,7 @@ public class GetPathParentQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsEmptyList_ShouldReturnEmptySuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathParentQuery query = _fixture.Create<GetPathParentQuery>();
|
||||
|
||||
+3
-3
@@ -39,7 +39,7 @@ public class GetPathRootQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQuery_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQuery_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathRootQuery query = GetPathRootQueryFixture.CreateGetPathRootQuery();
|
||||
@@ -59,7 +59,7 @@ public class GetPathRootQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathRootQuery query = GetPathRootQueryFixture.CreateGetPathRootQuery();
|
||||
@@ -77,7 +77,7 @@ public class GetPathRootQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenPathServiceReturnsRootPathSegment_ShouldReturnRootSuccessResult()
|
||||
public async Task HandleAsync_WhenPathServiceReturnsRootPathSegment_ShouldReturnRootSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathRootQuery query = GetPathRootQueryFixture.CreateGetPathRootQuery();
|
||||
|
||||
+2
-2
@@ -30,7 +30,7 @@ public class GetPathSeparatorQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalled_ShouldReturnPathSeparatorResponse()
|
||||
public async Task HandleAsync_WhenCalled_ShouldReturnPathSeparatorResponse()
|
||||
{
|
||||
// Arrange
|
||||
GetPathSeparatorQuery query = new();
|
||||
@@ -66,7 +66,7 @@ public class GetPathSeparatorQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledMultipleTimes_ShouldReturnSameResult()
|
||||
public async Task HandleAsync_WhenCalledMultipleTimes_ShouldReturnSameResult()
|
||||
{
|
||||
// Arrange
|
||||
GetPathSeparatorQuery query = new();
|
||||
|
||||
+4
-4
@@ -30,7 +30,7 @@ public class ValidatePathQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidPath_ShouldReturnTrueResponse()
|
||||
public async Task HandleAsync_WhenCalledWithValidPath_ShouldReturnTrueResponse()
|
||||
{
|
||||
// Arrange
|
||||
ValidatePathQuery query = ValidatePathQueryFixure.CreateValidatePathQuery();
|
||||
@@ -45,7 +45,7 @@ public class ValidatePathQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithInvalidPath_ShouldReturnFalseResponse()
|
||||
public async Task HandleAsync_WhenCalledWithInvalidPath_ShouldReturnFalseResponse()
|
||||
{
|
||||
// Arrange
|
||||
ValidatePathQuery query = ValidatePathQueryFixure.CreateValidatePathQuery();
|
||||
@@ -60,7 +60,7 @@ public class ValidatePathQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithNullPath_ShouldReturnFalseResponse()
|
||||
public async Task HandleAsync_WhenCalledWithNullPath_ShouldReturnFalseResponse()
|
||||
{
|
||||
// Arrange
|
||||
ValidatePathQuery query = new(null!);
|
||||
@@ -75,7 +75,7 @@ public class ValidatePathQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithEmptyPath_ShouldReturnFalseResponse()
|
||||
public async Task HandleAsync_WhenCalledWithEmptyPath_ShouldReturnFalseResponse()
|
||||
{
|
||||
// Arrange
|
||||
ValidatePathQuery query = new(string.Empty);
|
||||
|
||||
+3
-3
@@ -36,7 +36,7 @@ public class GetThumbnailQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCalledWithValidQuery_ShouldReturnSuccessResult()
|
||||
public async Task HandleAsync_WhenCalledWithValidQuery_ShouldReturnSuccessResult()
|
||||
{
|
||||
// Arrange
|
||||
GetThumbnailQuery query = _fixture.Create<GetThumbnailQuery>();
|
||||
@@ -57,7 +57,7 @@ public class GetThumbnailQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenThumbnailServiceReturnsError_ShouldReturnFailureResult()
|
||||
public async Task HandleAsync_WhenThumbnailServiceReturnsError_ShouldReturnFailureResult()
|
||||
{
|
||||
// Arrange
|
||||
GetThumbnailQuery query = _fixture.Create<GetThumbnailQuery>();
|
||||
@@ -75,7 +75,7 @@ public class GetThumbnailQueryHandlerTests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Handle_WhenCancellationRequested_ShouldCancelOperation()
|
||||
public async Task HandleAsync_WhenCancellationRequested_ShouldCancelOperation()
|
||||
{
|
||||
// Arrange
|
||||
GetThumbnailQuery query = _fixture.Create<GetThumbnailQuery>();
|
||||
|
||||
Reference in new issue
Block a user