mirror of
https://github.com/ysoftdevs/wapifuzz.git
synced 2026-02-25 12:04:58 +01:00
Added support for array attributes
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Parser.Tests
|
||||
[TestCase("string", "date", "2002-10-02")]
|
||||
[TestCase("string", "date-time", "2002-10-02T10:00:00-05:00")]
|
||||
[TestCase("string", "password", "example")]
|
||||
[TestCase("array", null, "attr1,attr2")]
|
||||
public void ValidCombinationsShouldReturnValidValue(string type, string format, string expected)
|
||||
{
|
||||
string example = PrimitiveDataTypeExampleGenerator.GenerateExampleValueByType(type, format);
|
||||
|
||||
@@ -18,6 +18,8 @@ namespace Parser
|
||||
return "42.0";
|
||||
case "boolean":
|
||||
return "True";
|
||||
case "array":
|
||||
return "attr1,attr2";
|
||||
case "string":
|
||||
{
|
||||
const string example = "example";
|
||||
|
||||
Reference in New Issue
Block a user