mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 09:11:10 +00:00
Formats code comments as sentences in the tests.
Capitalizes the first word and adds the terminal period in the unit, integration and security tests. The AAA markers stay bare, the TODO bodies stay lowercase, and no assertion, payload, expected status code or test signature changes.
This commit is contained in:
1 parent
727aa33318
commit
057f557791
540 files changed
+3888
-3888
No files matched your search
@@ -29,10 +29,10 @@ public class GenreTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(" Science FICTION ", "science fiction")] // ASCII mixed case with surrounding whitespace
|
||||
[InlineData("ÉLECTRO", "électro")] // non-ASCII Latin uppercase
|
||||
[InlineData("ЖАНР", "жанр")] // non-Latin uppercase
|
||||
[InlineData(" indie ", "indie")] // surrounding whitespace
|
||||
[InlineData(" Science FICTION ", "science fiction")] // ASCII mixed case with surrounding whitespace.
|
||||
[InlineData("ÉLECTRO", "électro")] // Non-ASCII Latin uppercase.
|
||||
[InlineData("ЖАНР", "жанр")] // Non-Latin uppercase.
|
||||
[InlineData(" indie ", "indie")] // Surrounding whitespace.
|
||||
public void Create_WhenNameHasMixedCaseOrSurroundingWhitespace_ShouldNormalizeIt(string name, string expectedName)
|
||||
{
|
||||
// Act
|
||||
@@ -70,9 +70,9 @@ public class GenreTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // null name
|
||||
[InlineData("")] // empty name
|
||||
[InlineData(" ")] // whitespace name
|
||||
[InlineData(null)] // Null name.
|
||||
[InlineData("")] // Empty name.
|
||||
[InlineData(" ")] // Whitespace name.
|
||||
public void Create_WhenNameIsNullOrWhitespace_ShouldReturnError(string? name)
|
||||
{
|
||||
// Act
|
||||
|
||||
@@ -28,9 +28,9 @@ public class MoodTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // null mood name
|
||||
[InlineData("")] // empty mood name
|
||||
[InlineData(" ")] // whitespace mood name
|
||||
[InlineData(null)] // Null mood name.
|
||||
[InlineData("")] // Empty mood name.
|
||||
[InlineData(" ")] // Whitespace mood name.
|
||||
public void Create_WhenNameIsNullOrWhitespace_ShouldReturnError(string? name)
|
||||
{
|
||||
// Act
|
||||
|
||||
@@ -29,10 +29,10 @@ public class TagTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(" BeStSeLLeR ", "bestseller")] // ASCII mixed case with surrounding whitespace
|
||||
[InlineData("ÉLECTRO", "électro")] // non-ASCII Latin uppercase
|
||||
[InlineData("ЖАНР", "жанр")] // non-Latin uppercase
|
||||
[InlineData(" indie ", "indie")] // surrounding whitespace
|
||||
[InlineData(" BeStSeLLeR ", "bestseller")] // ASCII mixed case with surrounding whitespace.
|
||||
[InlineData("ÉLECTRO", "électro")] // Non-ASCII Latin uppercase.
|
||||
[InlineData("ЖАНР", "жанр")] // Non-Latin uppercase.
|
||||
[InlineData(" indie ", "indie")] // Surrounding whitespace.
|
||||
public void Create_WhenNameHasMixedCaseOrSurroundingWhitespace_ShouldNormalizeIt(string name, string expectedName)
|
||||
{
|
||||
// Act
|
||||
@@ -70,9 +70,9 @@ public class TagTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // null name
|
||||
[InlineData("")] // empty name
|
||||
[InlineData(" ")] // whitespace name
|
||||
[InlineData(null)] // Null name.
|
||||
[InlineData("")] // Empty name.
|
||||
[InlineData(" ")] // Whitespace name.
|
||||
public void Create_WhenNameIsNullOrWhitespace_ShouldReturnError(string? name)
|
||||
{
|
||||
// Act
|
||||
|
||||
Reference in new issue
Block a user