Skip to content

Instantly share code, notes, and snippets.

@j-onathan
Created August 8, 2014 16:18
Show Gist options
  • Save j-onathan/a1597f0a1901615c74b7 to your computer and use it in GitHub Desktop.
Save j-onathan/a1597f0a1901615c74b7 to your computer and use it in GitHub Desktop.
public void shouldStoreLastSentTextMessageParameters() {
smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null);
ShadowSmsManager.TextSmsParams lastParams = shadowSmsManager.getLastSentTextMessageParams();
Assert.assertEquals(testDestinationAddress, lastParams.getDestinationAddress());
Assert.assertEquals(testScAddress, lastParams.getScAddress());
Assert.assertEquals(testText, lastParams.getText());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment