Trumbo and Goldschmidt had three hits apiece, and Blake Lalli singled in the winning run in the ninth. Lalli is trying to make the team as a backup catcher.
Texas center fielder Delino DeShields had two hits, including a solo homer, and two RBIs, bolstering his case for a spot on the Rangers' opening-day roster. DeShields is 7 for 17 in his last four games.
Nick Martinez, who was recently selected for the fifth spot in Texas' rotation, was charged with six earned runs in 4 1-3 innings.
Diamondbacks starter Chase Anderson labored through four innings, giving up six runs and 11 hits. Trevor Cahill then came in and struck out five in two scoreless innings.