summaryrefslogtreecommitdiffstats
path: root/SendGrid/Tests/TestSendgrid.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SendGrid/Tests/TestSendgrid.cs')
-rw-r--r--SendGrid/Tests/TestSendgrid.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/SendGrid/Tests/TestSendgrid.cs b/SendGrid/Tests/TestSendgrid.cs
index 3bf0077..400c64f 100644
--- a/SendGrid/Tests/TestSendgrid.cs
+++ b/SendGrid/Tests/TestSendgrid.cs
@@ -346,5 +346,17 @@ namespace Tests
var json = header.JsonString();
Assert.AreEqual("{\"filters\" : {\"opentrack\" : {\"settings\" : {\"enable\" : \"0\"}}}}", json);
}
+
+ [Test]
+ public void TestAddSection()
+ {
+ var header = new Header();
+ var sendgrid = new SendGridMessage(header);
+
+ sendgrid.AddSection("tag", "value");
+
+ var json = header.JsonString();
+ Assert.AreEqual("{\"section\" : {\"tag\" : \"value\"}}", json);
+ }
}
} \ No newline at end of file