コード例 #1
0
        public void HugeFile()
        {
            string source = "Text" + new string('\n', HugeLineCount);

            SingleFileTest.AssertGlobalWarning(source, WarningIDs.HugeMarkdownFile, $"{HugeLineCount} >= {HugeLineCount}");

            source = "Text" + new string('\n', HugeLineCount * 2);
            SingleFileTest.AssertGlobalWarning(source, WarningIDs.HugeMarkdownFile, $"{HugeLineCount * 2} >= {HugeLineCount}");
        }
コード例 #2
0
 public void EmptyFile_WhiteSpaceAndNewLines()
 {
     SingleFileTest.AssertGlobalWarning(" \n \n \n ", WarningIDs.EmptyMarkdownFile);
 }
コード例 #3
0
 public void EmptyFile_NewLinesOnly()
 {
     SingleFileTest.AssertGlobalWarning(new string('\n', 5), WarningIDs.EmptyMarkdownFile);
 }
コード例 #4
0
 public void EmptyFile_WhitespaceOnly()
 {
     SingleFileTest.AssertGlobalWarning(new string(' ', 5), WarningIDs.EmptyMarkdownFile);
 }
コード例 #5
0
 public void EmptyFile()
 {
     SingleFileTest.AssertGlobalWarning(string.Empty, WarningIDs.EmptyMarkdownFile);
 }