public override void verifyListener <T1>(DelegateListener <T1> listener) where T1 : [email protected] { assertTrue(listener is ClassDelegateCaseExecutionListener); ClassDelegateCaseExecutionListener classDelegateListener = (ClassDelegateCaseExecutionListener)listener; assertEquals(CLASS_NAME, classDelegateListener.ClassName); IList <FieldDeclaration> fieldDeclarations = classDelegateListener.FieldDeclarations; assertEquals(fieldSpecs.Count, fieldDeclarations.Count); for (int i = 0; i < fieldDeclarations.Count; i++) { FieldDeclaration declaration = fieldDeclarations[i]; FieldSpec matchingFieldSpec = fieldSpecs[i]; matchingFieldSpec.verify(declaration); } }
public override void verifyListener <T1>(DelegateListener <T1> listener) where T1 : [email protected] { assertTrue(listener is DelegateExpressionCaseExecutionListener); DelegateExpressionCaseExecutionListener delegateExpressionListener = (DelegateExpressionCaseExecutionListener)listener; assertEquals(DELEGATE_EXPRESSION, delegateExpressionListener.ExpressionText); IList <FieldDeclaration> fieldDeclarations = delegateExpressionListener.FieldDeclarations; assertEquals(fieldSpecs.Count, fieldDeclarations.Count); for (int i = 0; i < fieldDeclarations.Count; i++) { FieldDeclaration declaration = fieldDeclarations[i]; FieldSpec matchingFieldSpec = fieldSpecs[i]; matchingFieldSpec.verify(declaration); } }