| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method VerifyIOUnitsNumbers ( |  |   MPSync mpsync, |  |   Number expectediounits, |  |   Number expectedexceliounits, |  |   Number expectedcimiounits |  | ) |  | { |  |   Description: 'Verify that the number of IOUnits excel and cim is matching the expect amount given in parameters.' |  |   TextBody: |  |   [* |  |     actualiounits := mpsync.IOUnit( relsize ); |  |     actualiounitsexcel := counter( mpsync, IOUnit, iou, iou.DataSource() = MPSyncUtility::ID_Source_Excel() ); |  |     actualiounitscim := counter( mpsync, IOUnit, iou, iou.DataSource() = MPSyncUtility::ID_Source_CIM() ); |  |      |  |     if( this.Run().AssertEqual( actualiounits, expectediounits, this.GetIOUnitsSizeFeedback( expectediounits, actualiounits ) ) ) |  |     { |  |       this.Run().AssertEqual( actualiounitsexcel, expectedexceliounits, 'The number of IOunits with datasource excel ' + [String]actualiounitsexcel + ' is not matching Carco 1.0 Base number of Units ' +[String]expectedexceliounits + '.' ); |  |       this.Run().AssertEqual( actualiounitscim, expectedcimiounits, 'The number of IOunits with datasource cim ' + [String]actualiounitscim + ' is not matching Carco 1.0 Base number of Units ' +[String]expectedcimiounits + '.' ); |  |     } |  |   *] |  |   InterfaceProperties { Accessibility: 'Module' } |  | } | 
 |