示例#1
0
        public void TestAddCategories()
        {
            var header = new SmtpHeader();

            // Arrange
            header.AddCategory(new List<string> { "dogs", "animals", "pets", "mammals" });

            // Actual
            var result = header.ToString();

            Assert.AreEqual("{\"category\":[\"dogs\",\"animals\",\"pets\",\"mammals\"]}", result);
        }
示例#2
0
        public void TestAddCategory()
        {
            var header = new SmtpHeader();

            // Arrange
            header.AddCategory("foo");

            // Actual
            var result = header.ToString();

            Assert.Equal("{\"category\":[\"foo\"]}", result);
        }
示例#3
0
        public void TestAddCategory()
        {
            var header = new SmtpHeader();

            // Arrange
            header.AddCategory("foo");

            // Actual
            var result = header.ToString();

            Assert.AreEqual("{\"category\":\"foo\"}", result);
        }
示例#4
0
        public void TestAddCategories()
        {
            var header = new SmtpHeader();

            // Arrange
            header.AddCategory(new List <string> {
                "dogs", "animals", "pets", "mammals"
            });

            // Actual
            var result = header.ToString();

            Assert.Equal("{\"category\":[\"dogs\",\"animals\",\"pets\",\"mammals\"]}", result);
        }