Created
February 4, 2011 06:39
-
-
Save johnsheehan/810817 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void Can_Generate_Single_Say_With_Shortcut() | |
{ | |
var response = new TwilioResponse(); | |
response.Say("Hello world"); | |
var expected = XDocument.Parse("<Response><Say>Hello world</Say></Response>").ToString(); | |
var actual = response.ToString(); | |
Assert.AreEqual(expected, actual); | |
} | |
[TestMethod] | |
public void Can_Generate_Single_Say_With_Shortcut_And_Attributes() | |
{ | |
var response = new TwilioResponse(); | |
response.Say("Hello world", new { language = "en" }); | |
var expected = XDocument.Parse("<Response><Say language=\"en\">Hello world</Say></Response>").ToString(); | |
var actual = response.ToString(); | |
Assert.AreEqual(expected, actual); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment