public void ShouldThrowNullArgumentException() { const string text = null; var strategy = new UnidecodeStrategy(); Assert.Throws <ArgumentNullException>(() => strategy.Translate(text)); }
public void ShouldNormalizeWithUnidecode(string value, string expectation) { var strategy = new UnidecodeStrategy(); var translated = strategy.Translate(value); Assert.Equal(expectation, translated); }