Exemple #1
0
 public void TestCleanTitleNonStandardFormat()
 {
     Assert.Equal("Big title [ Wikipedia ]", Readability.CleanTitle("Big title [ Wikipedia ]", "Wikipedia"));
 }
Exemple #2
0
 public void TestCleanTitleNoSeparator()
 {
     Assert.Equal("Big title Wikipedia", Readability.CleanTitle("Big title Wikipedia", "Wikipedia"));
 }
Exemple #3
0
 public void TestCleanTitleBackslash()
 {
     Assert.Equal("Big title", Readability.CleanTitle("Big title / Wikipedia", "Wikipedia"));
 }
Exemple #4
0
 public void TestCleanTitleMark()
 {
     Assert.Equal("Big title", Readability.CleanTitle("Big title » Wikipedia", "Wikipedia"));
 }
Exemple #5
0
 public void TestCleanTitleNoSitename()
 {
     Assert.Equal("Big title ", Readability.CleanTitle("Big title ", "Wikipedia"));
 }