import { TestCase } from '../../../lib/decorators/testCase.decorator' ; import { Test , TestSuite } from '../../../testyCore' ; @ TestSuite ( 'TestCases Test Decorator Test Suite' ) export class TestCasesTestDecoratorTestSuite { public numberOfRunsTest1 : number = 0 ; public numberOfRunsTest2 : number = 0 ; public numberOfRunsTest3 : number = 0 ; @ Test ( 'My test with test cases' ) @ TestCase ( 'My first test' , 1 ) @ TestCase ( 'My second test' , 2 ) @ TestCase ( 'My third test' , 3 ) public tests ( n ) { if ( n === 1 ) { ++ this . numberOfRunsTest1 ; } if ( n === 2 ) { ++ this . numberOfRunsTest2 ; } if ( n === 3 ) { ++ this . numberOfRunsTest3 ; } } }