1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Create (TL_TestLogger owner, String name, String description) as TL_TestUnit
| {
| TextBody:
| [*
| instance := select( owner, TL_TestUnit, unit, unit.Name() = name );
|
| if( isnull( instance ) )
| {
| instance := owner.TL_TestUnit( relnew,
| Name := name );
| }
|
| instance.Description( description );
| instance.TL_TestLoggerAsSelected( relset, owner );
|
| return instance;
| *]
| }
|
|