public void ShouldChangeDotSymbolsToHyphans() { DefaultSlugService slugService = new DefaultSlugService(new Mock<ISlugEventHandler>().Object); Assert.That(slugService.Slugify("a,d"), Is.EqualTo("a-d")); }
public void ShouldMakeSureFunkycharactersAndHyphansOnlyReturnSingleHyphan() { DefaultSlugService slugService = new DefaultSlugService(new Mock<ISlugEventHandler>().Object); Assert.That(slugService.Slugify("a-%-.d"), Is.EqualTo("a-d")); }
public void ShouldStripContiguousDashesEverywhere() { DefaultSlugService slugService = new DefaultSlugService(new Mock<ISlugEventHandler>().Object); Assert.That(slugService.Slugify("a - b - c -- d"), Is.EqualTo("a-b-c-d")); }