public void TestSeeAlsoElementHref() { string expected = "<seealso href=\"http://www.example.com/\">Text.</seealso>"; Assert.Equal(expected, XmlSyntaxFactory.SeeAlsoElement(new Uri("http://www.example.com/"), XmlSyntaxFactory.List(XmlSyntaxFactory.Text("Text."))).ToFullString()); }
public void TestSeeAlsoElementCref() { string expected = "<seealso cref=\"System.ArgumentNullException\"/>"; Assert.Equal(expected, XmlSyntaxFactory.SeeAlsoElement(SyntaxFactory.TypeCref(SyntaxFactory.ParseTypeName(typeof(ArgumentNullException).FullName))).ToFullString()); }