-
Notifications
You must be signed in to change notification settings - Fork 2
/
PRO_prop_get_value.template
29 lines (28 loc) · 1.08 KB
/
PRO_prop_get_value.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[Test]
[Category("P1")]
[Description("Calling Property Get ${func.name}$.")]
[Property("SPEC", "${suite.name}$.${cls.name}$.${func.name}$ A")]
[Property("SPEC_URL", "-")]
${m_show(mshow=func.get_criteria_custom,mdefault=' [Property("CRITERIA", "PRO")]')}$#!
[Property("AUTHOR", "AutomaTest Boot, tct@automated")]
public void ${func.name}$_PROPERTY_GET()
{
${def_params(parameters=func.getter_args, prefix="get_arg_")}$
${m_show(mshow=func.arg_get_init)}$#!
${m_show(mshow=func.get_init)}$#!
/* CALLING PROPERTY */
try
{
${callget()}$
}
catch (Exception ex)
{
Assert.Fail("Should not throw exception. " + ex.ToString());
}
<!--(for p in func.getter_values)-->
Assert.NotNull(get_arg_${p.name}$, "${p.name}$ should be readable");
Assert.IsInstanceOf<${suite.type_convert(p.type)}$>(get_arg_${p.name}$);
<!--(end)-->
${m_show(mshow=func.arg_get_shutdown)}$#!
${m_show(mshow=func.get_shutdown)}$#!
}