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); }
public void TestAddCategory() { var header = new SmtpHeader(); // Arrange header.AddCategory("foo"); // Actual var result = header.ToString(); Assert.Equal("{\"category\":[\"foo\"]}", result); }
public void TestAddCategory() { var header = new SmtpHeader(); // Arrange header.AddCategory("foo"); // Actual var result = header.ToString(); Assert.AreEqual("{\"category\":\"foo\"}", result); }
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); }