summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-06-19 20:29:44 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-16 17:04:59 -0300
commit7c392f1c46ea128247e94401119aa05d9cd782b1 (patch)
tree4bf45a4f2a69d46b9d5eef965b54f0dc431e39db
parent63c93a13c001e9e91577c68a813b14057006b815 (diff)
downloadefl-7c392f1c46ea128247e94401119aa05d9cd782b1.tar.gz
changes to CS test generator - WIP
Still need to get rid of `_`
-rw-r--r--src/scripts/testgen/testgenerator.cs.template10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/scripts/testgen/testgenerator.cs.template b/src/scripts/testgen/testgenerator.cs.template
index aca9903d5e..59e38f124c 100644
--- a/src/scripts/testgen/testgenerator.cs.template
+++ b/src/scripts/testgen/testgenerator.cs.template
@@ -3,7 +3,7 @@
${mshow}$#!
<!--(end)-->
<!--(end)-->
-<!--(macro def_obj)-->${'.'.join(param.type.namespaces).lower()}$.I${param.type.short_name}$ arg_${param.name}$ = null;<!--(end)-->
+<!--(macro def_obj)-->${'.'.join(param.type.namespaces)}$.I${param.type.short_name}$ arg_${param.name}$ = null;<!--(end)-->
<!--(macro def_param)-->
<!--(if param.type.type == param.type.type.CLASS)-->${def_obj(param=param)}$<!--(else)-->${suite.type_convert(param.type)}$ arg_${param.name}$ = default(${suite.type_convert(param.type)}$);<!--(end)-->
<!--(end)-->
@@ -13,7 +13,7 @@ ${mshow}$#!
<!--(end)-->
<!--(end)-->
<!--(macro meth_target)-->
- <!--(if func.is_class)-->${'.'.join(cls.namespaces).lower()}$.${cls.short_name}$<!--(else)-->obj<!--(end)-->
+ <!--(if func.is_class)-->${'.'.join(cls.namespaces)}$.${cls.short_name}$<!--(else)-->obj<!--(end)-->
<!--(end)-->
using System;
@@ -21,11 +21,11 @@ namespace TestSuite
{
<!--(if suite.custom)-->${suite.custom}$<!--(end)-->
<!--(for cls in suite)-->
-/**************** TEST CASE ${cls.c_name}$ ****************/
+/**************** TEST CASE ${cls.c_macro}$ ****************/
class Test${cls.name.replace('.','')}$
{
- ${'.'.join(cls.namespaces).lower()}$.I${cls.short_name}$ obj;
+ ${'.'.join(cls.namespaces)}$.I${cls.short_name}$ obj;
${m_show(mshow=cls.custom)}$#!
public void SetUp()
@@ -34,7 +34,7 @@ ${m_show(mshow=suite.init)}$#!
<!--(if cls.init)-->
${cls.init}$
<!--(else)-->
- obj = new ${'.'.join(cls.namespaces).lower()}$.${cls.short_name}$();
+ obj = new ${'.'.join(cls.namespaces)}$.${cls.short_name}$();
<!--(end)-->
}