本文整理汇总了C#中Article.UnknownWikiProjectBannerShellParameters方法的典型用法代码示例。如果您正苦于以下问题:C# Article.UnknownWikiProjectBannerShellParameters方法的具体用法?C# Article.UnknownWikiProjectBannerShellParameters怎么用?C# Article.UnknownWikiProjectBannerShellParameters使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Article
的用法示例。
在下文中一共展示了Article.UnknownWikiProjectBannerShellParameters方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AlertProperties
public void AlertProperties()
{
Article a = new Article("A", "{{dead link}}");
Assert.AreEqual(1, a.DeadLinks().Count);
Assert.IsTrue(a.HasDeadLinks);
a = new Article("A", "<small>");
Assert.AreEqual(1, a.UnclosedTags().Count);
a = new Article("A", "==[[A]]==");
Assert.AreEqual(1, a.WikiLinkedHeaders().Count);
a = new Article("A", "{{multiple issues|foo=bar}}");
Assert.AreEqual(1, a.UnknownMultipleIssuesParameters().Count);
a = new Article("Talk:A", "{{WikiProjectBannerShell|foo=bar}}");
Assert.AreEqual(1, a.UnknownWikiProjectBannerShellParameters().Count);
a = new Article("Talk:A", "{{WikiProjectBannerShell|foo=bar|foo=bar}}");
Assert.AreEqual(1, a.DuplicateWikiProjectBannerShellParameters().Count);
a = new Article("A", "[[A|B|C]]");
Assert.AreEqual(1, a.DoublepipeLinks().Count);
a = new Article("A", "[[A||BC]]");
Assert.AreEqual(1, a.DoublepipeLinks().Count);
a = new Article("A", "[[|A]]");
Assert.AreEqual(1, a.TargetlessLinks().Count);
a = new Article("A", "{{cite web|sajksdfa=a}}");
Assert.AreEqual(1, a.BadCiteParameters().Count);
a = new Article("A", "{{cite web|date=5-4-10}}");
Assert.AreEqual(1, a.AmbiguousCiteTemplateDates().Count);
a = new Article("A", "[[User talk:Noobie]]");
Assert.AreEqual(1, a.UserSignature().Count);
a.ResetEditSummary();
Assert.AreEqual("", a.EditSummary);
}