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:
BinaryAlley committed 2026-11-16 18:17:29 +02:00
1 parent 727aa33318
commit 057f557791
540 files changed
+3888 -3888

No files matched your search

@@ -202,12 +202,12 @@ public class ChangePasswordCommandValidatorTests
}
[Theory]
[InlineData("password123")] // Missing uppercase and special character
[InlineData("PASSWORD123")] // Missing special character
[InlineData("Password123")] // Missing special character
[InlineData("Password!@#")] // Missing number
[InlineData("Pass1!")] // Too short
[InlineData("password")] // Missing uppercase, number, and special character
[InlineData("password123")] // Missing uppercase and special character.
[InlineData("PASSWORD123")] // Missing special character.
[InlineData("Password123")] // Missing special character.
[InlineData("Password!@#")] // Missing number.
[InlineData("Pass1!")] // Too short.
[InlineData("password")] // Missing uppercase, number, and special character.
public void Validate_WhenCurrentPasswordDoesNotMatchPattern_ShouldHaveValidationError(string password)
{
// Arrange
@@ -222,12 +222,12 @@ public class ChangePasswordCommandValidatorTests
}
[Theory]
[InlineData("password123")] // Missing uppercase and special character
[InlineData("PASSWORD123")] // Missing special character
[InlineData("Password123")] // Missing special character
[InlineData("Password!@#")] // Missing number
[InlineData("Pass1!")] // Too short
[InlineData("password")] // Missing uppercase, number, and special character
[InlineData("password123")] // Missing uppercase and special character.
[InlineData("PASSWORD123")] // Missing special character.
[InlineData("Password123")] // Missing special character.
[InlineData("Password!@#")] // Missing number.
[InlineData("Pass1!")] // Too short.
[InlineData("password")] // Missing uppercase, number, and special character.
public void Validate_WhenNewPasswordDoesNotMatchPattern_ShouldHaveValidationError(string password)
{
// Arrange
@@ -242,10 +242,10 @@ public class ChangePasswordCommandValidatorTests
}
[Theory]
[InlineData("Password1!")] // Valid password
[InlineData("Complex1@Password")] // Valid password
[InlineData("MyP@ssw0rd")] // Valid password
[InlineData("Abcd123!@#")] // Valid password
[InlineData("Password1!")] // Valid password.
[InlineData("Complex1@Password")] // Valid password.
[InlineData("MyP@ssw0rd")] // Valid password.
[InlineData("Abcd123!@#")] // Valid password.
public void Validate_WhenPasswordsMatchPattern_ShouldNotHaveValidationError(string password)
{
// Arrange
@@ -104,12 +104,12 @@ public class RecoverPasswordCommandValidatorTests
}
[Theory]
[InlineData("12345")] // Too short
[InlineData("1234567")] // Too long
[InlineData("abcdef")] // Contains letters
[InlineData("12345a")] // Contains letters
[InlineData("12.345")] // Contains special characters
[InlineData("12 345")] // Contains whitespace
[InlineData("12345")] // Too short.
[InlineData("1234567")] // Too long.
[InlineData("abcdef")] // Contains letters.
[InlineData("12345a")] // Contains letters.
[InlineData("12.345")] // Contains special characters.
[InlineData("12 345")] // Contains whitespace.
public void Validate_WhenTotpCodeIsInvalid_ShouldHaveValidationError(string totpCode)
{
// Arrange
@@ -160,12 +160,12 @@ public class RegisterUserCommandValidatorTests
}
[Theory]
[InlineData("password123")] // missing uppercase and special character
[InlineData("PASSWORD123")] // missing special character
[InlineData("Password123")] // missing special character
[InlineData("Password!@#")] // missing number
[InlineData("Pass1!")] // too short
[InlineData("password")] // missing uppercase, number, and special character
[InlineData("password123")] // Missing uppercase and special character.
[InlineData("PASSWORD123")] // Missing special character.
[InlineData("Password123")] // Missing special character.
[InlineData("Password!@#")] // Missing number.
[InlineData("Pass1!")] // Too short.
[InlineData("password")] // Missing uppercase, number, and special character.
public void Validate_WhenPasswordDoesNotMatchPattern_ShouldHaveValidationError(string password)
{
// Arrange
@@ -180,10 +180,10 @@ public class RegisterUserCommandValidatorTests
}
[Theory]
[InlineData("Password1!")] // valid password
[InlineData("Complex1@Password")] // valid password
[InlineData("MyP@ssw0rd")] // valid password
[InlineData("Abcd123!@#")] // valid password
[InlineData("Password1!")] // Valid password.
[InlineData("Complex1@Password")] // Valid password.
[InlineData("MyP@ssw0rd")] // Valid password.
[InlineData("Abcd123!@#")] // Valid password.
public void Validate_WhenPasswordMatchesPattern_ShouldNotHaveValidationError(string password)
{
// Arrange
@@ -219,9 +219,9 @@ public class RegisterUserCommandValidatorTests
}
[Theory]
[InlineData("a")] // too short
[InlineData("ab")] // too short
[InlineData("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] // too long (256 chars)
[InlineData("a")] // Too short.
[InlineData("ab")] // Too short.
[InlineData("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] // Too long (256 chars).
public void Validate_WhenUsernameHasInvalidLength_ShouldHaveValidationError(string username)
{
// Arrange
@@ -236,16 +236,16 @@ public class RegisterUserCommandValidatorTests
}
[Theory]
[InlineData(".username")] // starts with special character
[InlineData("username.")] // ends with special character
[InlineData("_username")] // starts with special character
[InlineData("username_")] // ends with special character
[InlineData("-username")] // starts with special character
[InlineData("username-")] // ends with special character
[InlineData("user name")] // contains space
[InlineData("user@name")] // contains invalid special char
[InlineData("user#name")] // contains invalid special char
[InlineData("user$name")] // contains invalid special char
[InlineData(".username")] // Starts with special character.
[InlineData("username.")] // Ends with special character.
[InlineData("_username")] // Starts with special character.
[InlineData("username_")] // Ends with special character.
[InlineData("-username")] // Starts with special character.
[InlineData("username-")] // Ends with special character.
[InlineData("user name")] // Contains space.
[InlineData("user@name")] // Contains invalid special char.
[InlineData("user#name")] // Contains invalid special char.
[InlineData("user$name")] // Contains invalid special char.
public void Validate_WhenUsernameHasInvalidFormat_ShouldHaveValidationError(string username)
{
// Arrange
@@ -260,13 +260,13 @@ public class RegisterUserCommandValidatorTests
}
[Theory]
[InlineData("user123")] // basic alphanumeric
[InlineData("user.name")] // with dot
[InlineData("user_name")] // with underscore
[InlineData("user-name")] // with hyphen
[InlineData("User.Name123")] // mixed case with special chars and numbers
[InlineData("a1b")] // minimum length
[InlineData("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] // maximum length (255 chars)
[InlineData("user123")] // Basic alphanumeric.
[InlineData("user.name")] // With dot.
[InlineData("user_name")] // With underscore.
[InlineData("user-name")] // With hyphen.
[InlineData("User.Name123")] // Mixed case with special chars and numbers.
[InlineData("a1b")] // Minimum length.
[InlineData("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")] // Maximum length (255 chars).
public void Validate_WhenUsernameHasValidFormat_ShouldNotHaveValidationError(string username)
{
// Arrange
@@ -193,7 +193,7 @@ public class LoginUserQueryHandlerTests
UserEntity user = _userEntityFixture.Create();
user.Password = Uri.EscapeDataString(hashedPassword);
user.TempPassword = Uri.EscapeDataString(hashedTempPassword);
user.TempPasswordCreated = DateTime.UtcNow.AddMinutes(-16); // Expired (more than 15 minutes old)
user.TempPasswordCreated = DateTime.UtcNow.AddMinutes(-16); // Expired (more than 15 minutes old).
LoginUserQuery query = _loginUserQueryFixture.Create(user.Username, password);
@@ -229,18 +229,18 @@ public class LoginUserQueryHandlerTests
UserEntity user = _userEntityFixture.Create();
user.Password = Uri.EscapeDataString(hashedPassword);
user.TempPassword = Uri.EscapeDataString(hashedTempPassword);
// Set temp password created time to 10 minutes ago (still valid)
// Set temp password created time to 10 minutes ago (still valid).
user.TempPasswordCreated = DateTime.UtcNow.AddMinutes(-10);
user.TotpSecret = null; // Ensure no TOTP validation is needed
user.TotpSecret = null; // Ensure no TOTP validation is needed.
LoginUserQuery query = _loginUserQueryFixture.Create(user.Username, password);
_mockUserRepository.GetByUsernameAsync(user.Username, Arg.Any<CancellationToken>())
.Returns(Result.From<UserEntity?>(user));
_mockHashService.CheckStringAgainstHash(password, hashedPassword)
.Returns(false); // Regular password check fails
.Returns(false); // Regular password check fails.
_mockHashService.CheckStringAgainstHash(password, hashedTempPassword)
.Returns(true); // Temp password check succeeds
.Returns(true); // Temp password check succeeds.
_mockJwtTokenGenerator.GenerateToken(user.Id.ToString(), user.Username)
.Returns(jwtToken);
@@ -344,16 +344,16 @@ public class LoginUserQueryHandlerTests
UserEntity user = _userEntityFixture.Create();
user.Password = Uri.EscapeDataString(hashedPassword);
user.TempPassword = Uri.EscapeDataString(hashedTempPassword);
user.TempPasswordCreated = DateTime.UtcNow.AddMinutes(-10); // Valid timeframe
user.TempPasswordCreated = DateTime.UtcNow.AddMinutes(-10); // Valid timeframe.
LoginUserQuery query = _loginUserQueryFixture.Create(user.Username, password);
_mockUserRepository.GetByUsernameAsync(user.Username, Arg.Any<CancellationToken>())
.Returns(Result.From<UserEntity?>(user));
_mockHashService.CheckStringAgainstHash(password, hashedPassword)
.Returns(false); // Regular password check fails
.Returns(false); // Regular password check fails.
_mockHashService.CheckStringAgainstHash(password, hashedTempPassword)
.Returns(false); // Temp password check also fails
.Returns(false); // Temp password check also fails.
// Act
Result<LoginResponse> result = await _sut.HandleAsync(query, CancellationToken.None);
@@ -104,12 +104,12 @@ public class LoginUserQueryValidatorTests
}
[Theory]
[InlineData("password123")] // Missing uppercase and special character
[InlineData("PASSWORD123")] // Missing special character
[InlineData("Password123")] // Missing special character
[InlineData("Password!@#")] // Missing number
[InlineData("Pass1!")] // Too short
[InlineData("password")] // Missing uppercase, number, and special character
[InlineData("password123")] // Missing uppercase and special character.
[InlineData("PASSWORD123")] // Missing special character.
[InlineData("Password123")] // Missing special character.
[InlineData("Password!@#")] // Missing number.
[InlineData("Pass1!")] // Too short.
[InlineData("password")] // Missing uppercase, number, and special character.
public void Validate_WhenPasswordDoesNotMatchPattern_ShouldHaveValidationError(string password)
{
// Arrange
@@ -124,10 +124,10 @@ public class LoginUserQueryValidatorTests
}
[Theory]
[InlineData("Password1!")] // Valid password
[InlineData("Complex1@Password")] // Valid password
[InlineData("MyP@ssw0rd")] // Valid password
[InlineData("Abcd123!@#")] // Valid password
[InlineData("Password1!")] // Valid password.
[InlineData("Complex1@Password")] // Valid password.
[InlineData("MyP@ssw0rd")] // Valid password.
[InlineData("Abcd123!@#")] // Valid password.
public void Validate_WhenPasswordMatchesPattern_ShouldNotHaveValidationError(string password)
{
// Arrange
@@ -142,12 +142,12 @@ public class LoginUserQueryValidatorTests
}
[Theory]
[InlineData("12345")] // Too short
[InlineData("1234567")] // Too long
[InlineData("abcdef")] // Contains letters
[InlineData("12345a")] // Contains letters
[InlineData("12.345")] // Contains special characters
[InlineData("12 345")] // Contains whitespace
[InlineData("12345")] // Too short.
[InlineData("1234567")] // Too long.
[InlineData("abcdef")] // Contains letters.
[InlineData("12345a")] // Contains letters.
[InlineData("12.345")] // Contains special characters.
[InlineData("12 345")] // Contains whitespace.
public void Validate_WhenTotpCodeIsInvalid_ShouldHaveValidationError(string totpCode)
{
// Arrange
@@ -34,9 +34,9 @@ public class UpdatePlaybackStateCommandValidatorTests
}
[Theory]
[InlineData(-0.01)] // just below the minimum
[InlineData(-1.0)] // well below the minimum
[InlineData(double.MinValue)] // far below the minimum
[InlineData(-0.01)] // Just below the minimum.
[InlineData(-1.0)] // Well below the minimum.
[InlineData(double.MinValue)] // Far below the minimum.
public void Validate_WhenVolumeIsBelowZero_ShouldHaveRangeError(double volume)
{
// Arrange
@@ -50,9 +50,9 @@ public class UpdatePlaybackStateCommandValidatorTests
}
[Theory]
[InlineData(1.01)] // just above the maximum
[InlineData(2.0)] // well above the maximum
[InlineData(double.MaxValue)] // far above the maximum
[InlineData(1.01)] // Just above the maximum.
[InlineData(2.0)] // Well above the maximum.
[InlineData(double.MaxValue)] // Far above the maximum.
public void Validate_WhenVolumeIsAboveOne_ShouldHaveRangeError(double volume)
{
// Arrange
@@ -66,9 +66,9 @@ public class UpdatePlaybackStateCommandValidatorTests
}
[Theory]
[InlineData(0.0)] // the minimum
[InlineData(0.5)] // a middle value
[InlineData(1.0)] // the maximum
[InlineData(0.0)] // The minimum.
[InlineData(0.5)] // A middle value.
[InlineData(1.0)] // The maximum.
public void Validate_WhenVolumeIsInRange_ShouldNotHaveRangeError(double volume)
{
// Arrange
@@ -170,8 +170,8 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(999)] // a value that is not a defined member of the enumeration
[InlineData(-1)] // a negative value that is not a defined member of the enumeration
[InlineData(999)] // A value that is not a defined member of the enumeration.
[InlineData(-1)] // A negative value that is not a defined member of the enumeration.
public void Validate_WhenVuMeterOrientationIsNotDefined_ShouldHaveValidationError(int vuMeterOrientationValue)
{
// Arrange
@@ -201,10 +201,10 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(0)] // below the minimum
[InlineData(-1)] // negative
[InlineData(129)] // above the maximum
[InlineData(int.MaxValue)] // far above the maximum
[InlineData(0)] // Below the minimum.
[InlineData(-1)] // Negative.
[InlineData(129)] // Above the maximum.
[InlineData(int.MaxValue)] // Far above the maximum.
public void Validate_WhenVuMeterSegmentCountIsOutOfRange_ShouldHaveValidationError(int vuMeterSegmentCount)
{
// Arrange
@@ -218,9 +218,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(1)] // the minimum
[InlineData(64)] // a middle value
[InlineData(128)] // the maximum
[InlineData(1)] // The minimum.
[InlineData(64)] // A middle value.
[InlineData(128)] // The maximum.
public void Validate_WhenVuMeterSegmentCountIsInRange_ShouldNotHaveValidationError(int vuMeterSegmentCount)
{
// Arrange
@@ -234,9 +234,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(-1)] // below the minimum
[InlineData(33)] // above the maximum
[InlineData(int.MinValue)] // far below the minimum
[InlineData(-1)] // Below the minimum.
[InlineData(33)] // Above the maximum.
[InlineData(int.MinValue)] // Far below the minimum.
public void Validate_WhenVuMeterSegmentGapIsOutOfRange_ShouldHaveValidationError(int vuMeterSegmentGap)
{
// Arrange
@@ -250,9 +250,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(0)] // the minimum
[InlineData(16)] // a middle value
[InlineData(32)] // the maximum
[InlineData(0)] // The minimum.
[InlineData(16)] // A middle value.
[InlineData(32)] // The maximum.
public void Validate_WhenVuMeterSegmentGapIsInRange_ShouldNotHaveValidationError(int vuMeterSegmentGap)
{
// Arrange
@@ -266,9 +266,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(-0.01)] // just below the minimum
[InlineData(1.01)] // just above the maximum
[InlineData(double.MinValue)] // far below the minimum
[InlineData(-0.01)] // Just below the minimum.
[InlineData(1.01)] // Just above the maximum.
[InlineData(double.MinValue)] // Far below the minimum.
public void Validate_WhenVuMeterMediumThresholdIsOutOfRange_ShouldHaveValidationError(double vuMeterMediumThreshold)
{
// Arrange
@@ -284,9 +284,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(0.0)] // the minimum
[InlineData(0.5)] // a middle value
[InlineData(1.0)] // the maximum
[InlineData(0.0)] // The minimum.
[InlineData(0.5)] // A middle value.
[InlineData(1.0)] // The maximum.
public void Validate_WhenVuMeterMediumThresholdIsInRange_ShouldNotHaveValidationError(double vuMeterMediumThreshold)
{
// Arrange
@@ -302,9 +302,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(-0.01)] // just below the minimum
[InlineData(1.01)] // just above the maximum
[InlineData(double.MaxValue)] // far above the maximum
[InlineData(-0.01)] // Just below the minimum.
[InlineData(1.01)] // Just above the maximum.
[InlineData(double.MaxValue)] // Far above the maximum.
public void Validate_WhenVuMeterHighThresholdIsOutOfRange_ShouldHaveValidationError(double vuMeterHighThreshold)
{
// Arrange
@@ -365,8 +365,8 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(0.5, 0.5)] // the thresholds are equal
[InlineData(0.4, 0.9)] // the high threshold is greater than the medium one
[InlineData(0.5, 0.5)] // The thresholds are equal.
[InlineData(0.4, 0.9)] // The high threshold is greater than the medium one.
public void Validate_WhenVuMeterHighThresholdIsGreaterThanOrEqualToMediumThreshold_ShouldNotHaveValidationError(
double vuMeterMediumThreshold,
double vuMeterHighThreshold)
@@ -399,9 +399,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(-1)] // below the minimum
[InlineData(10001)] // above the maximum
[InlineData(int.MinValue)] // far below the minimum
[InlineData(-1)] // Below the minimum.
[InlineData(10001)] // Above the maximum.
[InlineData(int.MinValue)] // Far below the minimum.
public void Validate_WhenVuMeterPeakHoldDurationIsOutOfRange_ShouldHaveValidationError(int vuMeterPeakHoldDurationInMilliseconds)
{
// Arrange
@@ -416,9 +416,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(0)] // the minimum
[InlineData(650)] // a middle value
[InlineData(10000)] // the maximum
[InlineData(0)] // The minimum.
[InlineData(650)] // A middle value.
[InlineData(10000)] // The maximum.
public void Validate_WhenVuMeterPeakHoldDurationIsInRange_ShouldNotHaveValidationError(int vuMeterPeakHoldDurationInMilliseconds)
{
// Arrange
@@ -433,9 +433,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(-0.01)] // just below the minimum
[InlineData(100.01)] // just above the maximum
[InlineData(double.MinValue)] // far below the minimum
[InlineData(-0.01)] // Just below the minimum.
[InlineData(100.01)] // Just above the maximum.
[InlineData(double.MinValue)] // Far below the minimum.
public void Validate_WhenVuMeterReleasePerSecondIsOutOfRange_ShouldHaveValidationError(double vuMeterReleasePerSecond)
{
// Arrange
@@ -450,9 +450,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(0.0)] // the minimum
[InlineData(3.0)] // a middle value
[InlineData(100.0)] // the maximum
[InlineData(0.0)] // The minimum.
[InlineData(3.0)] // A middle value.
[InlineData(100.0)] // The maximum.
public void Validate_WhenVuMeterReleasePerSecondIsInRange_ShouldNotHaveValidationError(double vuMeterReleasePerSecond)
{
// Arrange
@@ -467,9 +467,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(-0.01)] // just below the minimum
[InlineData(100.01)] // just above the maximum
[InlineData(double.MaxValue)] // far above the maximum
[InlineData(-0.01)] // Just below the minimum.
[InlineData(100.01)] // Just above the maximum.
[InlineData(double.MaxValue)] // Far above the maximum.
public void Validate_WhenVuMeterPeakReleasePerSecondIsOutOfRange_ShouldHaveValidationError(double vuMeterPeakReleasePerSecond)
{
// Arrange
@@ -484,9 +484,9 @@ public class UpdateUserSettingsCommandValidatorTests
}
[Theory]
[InlineData(0.0)] // the minimum
[InlineData(0.65)] // a middle value
[InlineData(100.0)] // the maximum
[InlineData(0.0)] // The minimum.
[InlineData(0.65)] // A middle value.
[InlineData(100.0)] // The maximum.
public void Validate_WhenVuMeterPeakReleasePerSecondIsInRange_ShouldNotHaveValidationError(double vuMeterPeakReleasePerSecond)
{
// Arrange