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