summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobMcLaren <bobmclaren@fssi-ca.com>2013-07-16 14:12:44 -0400
committerBobMcLaren <bobmclaren@fssi-ca.com>2013-07-16 14:12:44 -0400
commit15df331f53021773288688593e7d4c259487862c (patch)
treeb71b496fbdf3d95d4bae616c8058123e80c974f8
parent8004a6e3cc4b58757d09572ad3a5b41b7443b6d0 (diff)
downloadsendgrid-csharp-15df331f53021773288688593e7d4c259487862c.zip
sendgrid-csharp-15df331f53021773288688593e7d4c259487862c.tar.gz
sendgrid-csharp-15df331f53021773288688593e7d4c259487862c.tar.bz2
NUnit test added for SetCategories()
-rwxr-xr-xSendGrid/Tests/TestHeader.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/SendGrid/Tests/TestHeader.cs b/SendGrid/Tests/TestHeader.cs
index 8a130e9..617d70e 100755
--- a/SendGrid/Tests/TestHeader.cs
+++ b/SendGrid/Tests/TestHeader.cs
@@ -40,6 +40,15 @@ namespace Tests
}
[Test]
+ public void TestSetCategories()
+ {
+ var test = new Header();
+ test.SetCategories(new List<string>{"dogs","animals","pets","mammals"});
+ var result = test.AsJson();
+ Assert.AreEqual("{\"category\" : [\"dogs\", \"animals\", \"pets\", \"mammals\"]}", result);
+ }
+
+ [Test]
public void TestEnable()
{
var test = new Header();