fix the useage of the cli option for emitdefaultvalues and verify that it works

This commit is contained in:
Tommy Alander
2016-03-03 10:27:42 +01:00
parent e23626b05c
commit 033b9871b3
3 changed files with 11 additions and 1 deletions

View File

@@ -46,6 +46,8 @@ public class CSharpClientOptionsTest extends AbstractOptionsTest {
times = 1;
clientCodegen.setReturnICollection(false);
times = 1;
clientCodegen.setOptionalEmitDefaultValue(true);
times = 1;
}};
}
}

View File

@@ -32,7 +32,7 @@ public class CSharpClientOptionsProvider implements OptionsProvider {
.put(CodegenConstants.OPTIONAL_PROJECT_FILE, "true")
.put(CodegenConstants.OPTIONAL_PROJECT_GUID, PACKAGE_GUID_VALUE)
.put(CodegenConstants.DOTNET_FRAMEWORK, "4.x")
.put(CodegenConstants.OPTIONAL_EMIT_DEFAULT_VALUES, "false")
.put(CodegenConstants.OPTIONAL_EMIT_DEFAULT_VALUES, "true")
.build();
}