diff options
Diffstat (limited to 'SendGrid/Tests/TestJsonUtils.cs')
-rwxr-xr-x | SendGrid/Tests/TestJsonUtils.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/SendGrid/Tests/TestJsonUtils.cs b/SendGrid/Tests/TestJsonUtils.cs new file mode 100755 index 0000000..fee990d --- /dev/null +++ b/SendGrid/Tests/TestJsonUtils.cs @@ -0,0 +1,17 @@ +using System.Text;
+using NUnit.Framework;
+using SendGridMail;
+
+namespace Tests
+{
+ [TestFixture]
+ public class TestJsonUtils
+ {
+ [Test]
+ public void TestSerialize()
+ {
+ Assert.AreEqual("1", Utils.Serialize(1));
+ Assert.AreEqual("\"\\\"foo\\\"\"", Utils.Serialize("\"foo\""));
+ }
+ }
+}
|