mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 13: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
+9
-9
@@ -21,9 +21,9 @@ public class AddScheduledJobCommandValidatorTests
|
||||
private readonly AddScheduledJobCommandFixture _addScheduledJobCommandFixture = new();
|
||||
|
||||
[Theory]
|
||||
[InlineData(null)] // null name
|
||||
[InlineData("")] // empty name
|
||||
[InlineData(" ")] // whitespace name
|
||||
[InlineData(null)] // Null name.
|
||||
[InlineData("")] // Empty name.
|
||||
[InlineData(" ")] // Whitespace name.
|
||||
public void Validate_WhenNameIsNullOrWhitespace_ShouldHaveValidationError(string? name)
|
||||
{
|
||||
// Arrange
|
||||
@@ -89,8 +89,8 @@ public class AddScheduledJobCommandValidatorTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0)] // interval of zero
|
||||
[InlineData(-1)] // negative interval
|
||||
[InlineData(0)] // Interval of zero.
|
||||
[InlineData(-1)] // Negative interval.
|
||||
public void Validate_WhenIntervalScheduleHasNonPositiveInterval_ShouldHaveValidationError(int intervalMinutes)
|
||||
{
|
||||
// Arrange
|
||||
@@ -132,8 +132,8 @@ public class AddScheduledJobCommandValidatorTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(-1)] // hour below the allowed range
|
||||
[InlineData(24)] // hour above the allowed range
|
||||
[InlineData(-1)] // Hour below the allowed range.
|
||||
[InlineData(24)] // Hour above the allowed range.
|
||||
public void Validate_WhenDailyScheduleHasOutOfRangeHour_ShouldHaveValidationError(int hour)
|
||||
{
|
||||
// Arrange
|
||||
@@ -150,8 +150,8 @@ public class AddScheduledJobCommandValidatorTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(-1)] // minute below the allowed range
|
||||
[InlineData(60)] // minute above the allowed range
|
||||
[InlineData(-1)] // Minute below the allowed range.
|
||||
[InlineData(60)] // Minute above the allowed range.
|
||||
public void Validate_WhenDailyScheduleHasOutOfRangeMinute_ShouldHaveValidationError(int minute)
|
||||
{
|
||||
// Arrange
|
||||
|
||||
+6
-6
@@ -20,9 +20,9 @@ public class UpdateSchedulerDisplayPreferencesCommandValidatorTests
|
||||
private readonly UpdateSchedulerDisplayPreferencesCommandFixture _updateSchedulerDisplayPreferencesCommandFixture = new();
|
||||
|
||||
[Theory]
|
||||
[InlineData(0)] // display time span of zero
|
||||
[InlineData(-1)] // negative display time span
|
||||
[InlineData(-100)] // negative display time span far from zero
|
||||
[InlineData(0)] // Display time span of zero.
|
||||
[InlineData(-1)] // Negative display time span.
|
||||
[InlineData(-100)] // Negative display time span far from zero.
|
||||
public void Validate_WhenDisplayTimeSpanIsNotPositive_ShouldHaveValidationError(int displayTimeSpan)
|
||||
{
|
||||
// Arrange
|
||||
@@ -36,9 +36,9 @@ public class UpdateSchedulerDisplayPreferencesCommandValidatorTests
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(1)] // minimal positive display time span
|
||||
[InlineData(10)] // default display time span
|
||||
[InlineData(1440)] // a day expressed in minutes
|
||||
[InlineData(1)] // Minimal positive display time span.
|
||||
[InlineData(10)] // Default display time span.
|
||||
[InlineData(1440)] // A day expressed in minutes.
|
||||
public void Validate_WhenDisplayTimeSpanIsPositive_ShouldNotHaveValidationError(int displayTimeSpan)
|
||||
{
|
||||
// Arrange
|
||||
|
||||
Reference in new issue
Block a user