protected ExpressionStatementSyntax CreateAreEqualExpression(DataStructures.TypeInfo methodReturnType) { return(ExpressionStatement( InvocationExpression( MemberAccessExpression( SyntaxKind.SimpleMemberAccessExpression, IdentifierName("Assert"), IdentifierName("AreEqual"))) .WithArgumentList( ArgumentList( SeparatedList <ArgumentSyntax>( new SyntaxNodeOrToken[] { CreateArgument(new ParameterInfo(expectedVariableName, methodReturnType)), Token(SyntaxKind.CommaToken), Argument( IdentifierName(actualVariableName)) }))))); }
protected LocalDeclarationStatementSyntax CreateExpectedDeclaration(DataStructures.TypeInfo methodReturnType) { return(CreateVariableInitializeExpression(new ParameterInfo(expectedVariableName, methodReturnType))); }