mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Implements tests for commit dfd979ec1e
This commit is contained in:
1 parent
d8adf3c1b6
commit
968061e89a
111 files changed
+19955
-292
No files matched your search
+2
-1
@@ -35,4 +35,5 @@ public sealed record ValidatorUtilitiesTestRequest(
|
||||
int InclusiveIntValue,
|
||||
int? InclusiveNullableIntValue,
|
||||
string? EqualValue,
|
||||
string? EqualComparisonValue);
|
||||
string? EqualComparisonValue,
|
||||
string? TextualEnumValue);
|
||||
+5
-2
@@ -44,6 +44,7 @@ public class ValidatorUtilitiesTestRequestFixture
|
||||
/// <param name="inclusiveNullableIntValue">Optional. The nullable integer value that must be between 1 and 10.</param>
|
||||
/// <param name="equalValue">Optional. The value that must equal the comparison value.</param>
|
||||
/// <param name="equalComparisonValue">Optional. The comparison value.</param>
|
||||
/// <param name="textualEnumValue">Optional. The textual enum value that must be a member name of the test enumeration.</param>
|
||||
/// <returns>A configured <see cref="ValidatorUtilitiesTestRequest"/> instance.</returns>
|
||||
public ValidatorUtilitiesTestRequest Create(
|
||||
int? intValue = null,
|
||||
@@ -70,7 +71,8 @@ public class ValidatorUtilitiesTestRequestFixture
|
||||
int? inclusiveIntValue = null,
|
||||
int? inclusiveNullableIntValue = null,
|
||||
string? equalValue = null,
|
||||
string? equalComparisonValue = null)
|
||||
string? equalComparisonValue = null,
|
||||
string? textualEnumValue = null)
|
||||
{
|
||||
string resolvedPattern = patternValue ?? ValidPattern;
|
||||
return new Faker<ValidatorUtilitiesTestRequest>()
|
||||
@@ -99,7 +101,8 @@ public class ValidatorUtilitiesTestRequestFixture
|
||||
InclusiveIntValue: inclusiveIntValue ?? f.Random.Int(1, 10),
|
||||
InclusiveNullableIntValue: inclusiveNullableIntValue ?? f.Random.Int(1, 10),
|
||||
EqualValue: equalValue ?? "same",
|
||||
EqualComparisonValue: equalComparisonValue ?? "same"))
|
||||
EqualComparisonValue: equalComparisonValue ?? "same",
|
||||
TextualEnumValue: textualEnumValue ?? f.PickRandom<ValidatorUtilitiesTestEnum>().ToString()))
|
||||
.Generate();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user