public void Serializae2() { var link = new LinkHeader("/TheBook/chapter2"); link.Items.Add(new LinkHeaderItem("rel", "previous", true)); link.Items.Add(new LinkHeaderItem("title*", "UTF-8'de'letztes%20Kapitel")); Assert.Equal("</TheBook/chapter2>; rel=\"previous\"; title*=UTF-8'de'letztes%20Kapitel", link.ToString()); }
public void Serializae1() { var link = new LinkHeader("/", new LinkHeaderItem("rel", "index", true)); Assert.Equal("</>; rel=\"index\"", link.ToString()); }