mirror of
https://github.com/ysoftdevs/wapifuzz.git
synced 2026-03-24 18:31:19 +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", "2002-10-02")]
|
||||||
[TestCase("string", "date-time", "2002-10-02T10:00:00-05:00")]
|
[TestCase("string", "date-time", "2002-10-02T10:00:00-05:00")]
|
||||||
[TestCase("string", "password", "example")]
|
[TestCase("string", "password", "example")]
|
||||||
|
[TestCase("array", null, "attr1,attr2")]
|
||||||
public void ValidCombinationsShouldReturnValidValue(string type, string format, string expected)
|
public void ValidCombinationsShouldReturnValidValue(string type, string format, string expected)
|
||||||
{
|
{
|
||||||
string example = PrimitiveDataTypeExampleGenerator.GenerateExampleValueByType(type, format);
|
string example = PrimitiveDataTypeExampleGenerator.GenerateExampleValueByType(type, format);
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ namespace Parser
|
|||||||
return "42.0";
|
return "42.0";
|
||||||
case "boolean":
|
case "boolean":
|
||||||
return "True";
|
return "True";
|
||||||
|
case "array":
|
||||||
|
return "attr1,attr2";
|
||||||
case "string":
|
case "string":
|
||||||
{
|
{
|
||||||
const string example = "example";
|
const string example = "example";
|
||||||
|
|||||||
Reference in New Issue
Block a user