aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-13 00:27:30 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-13 00:27:30 -0300
commit6685e651d61ae3345c7fbad7bd2d7d1b876654b1 (patch)
treeb80fe6fc1f5d267d097f78f61d784bdf534847ae
parentautomatedtest: Fix translation of C# names. (diff)
downloadefl-6685e651d61ae3345c7fbad7bd2d7d1b876654b1.tar.gz
automatedtest-mono: Fix compilation of tests
- Switched from & to 'out' for output parameters - Reorder keys and values from multi-param getter/setters. First should be the keys and last the values.
-rw-r--r--src/scripts/pyolian/testgenerator_suite.cs.template4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/pyolian/testgenerator_suite.cs.template b/src/scripts/pyolian/testgenerator_suite.cs.template
index a88a045409..8b71868a70 100644
--- a/src/scripts/pyolian/testgenerator_suite.cs.template
+++ b/src/scripts/pyolian/testgenerator_suite.cs.template
@@ -91,7 +91,7 @@ ${func.get_init}$
<!--(if len(list(func.getter_values)) == 1)-->
var arg_${list(func.getter_values)[0].name}$ = obj.Get${func.csname}$(${', '.join(['arg_{}'.format(param.name) for param in func.getter_keys])}$);
<!--(else)-->
- obj.Get${func.csname}$(${', '.join(['&arg_{}'.format(p.name) for p in func.getter_values])}$${''.join([', arg_{}'.format(p.name) for p in func.getter_keys])}$);
+ obj.Get${func.csname}$(${', '.join(['out arg_{}'.format(p.name) for p in list(func.getter_keys) + list(func.getter_values)])}$);
<!--(end)-->
<!--(if func.arg_get_shutdown or func.get_shutdown)-->
${func.arg_get_shutdown}$
@@ -112,7 +112,7 @@ ${def_params(parameters=func.setter_keys)}$
${func.arg_set_init}$
${func.set_init}$
<!--(end)-->
- obj.Set${func.csname}$(${', '.join(['arg_{}'.format(p.name) for p in func.setter_values])}$${''.join([', arg_{}'.format(p.name) for p in func.setter_keys])}$);
+ obj.Set${func.csname}$(${', '.join(['arg_{}'.format(p.name) for p in list(func.setter_keys) + list(func.setter_values)])}$);
<!--(if func.arg_set_shutdown or func.set_shutdown)-->
${func.arg_set_shutdown}$
${func.set_shutdown}$