public void TestExceptionElement() { string expected = "<exception cref=\"System.ArgumentNullException\">Condition.</exception>"; Assert.Equal(expected, XmlSyntaxFactory.ExceptionElement(SyntaxFactory.TypeCref(SyntaxFactory.ParseTypeName(typeof(ArgumentNullException).FullName)), XmlSyntaxFactory.Text("Condition.")).ToFullString()); }