mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13: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
+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);
|
||||
|
||||
Reference in new issue
Block a user