public void name_without_underscores_is_returned_as_is() { const string startingValue = "foo Bar yo"; IValueConverter converter = new BuildNameToHumanizedNameConverter(); object convertedValue = converter.Convert(startingValue, null, null, null); Assert.That(convertedValue, Is.EqualTo(startingValue)); }
public void name_with_underscores_has_them_removed() { const string startingValue = "foo_bar_yo"; IValueConverter converter = new BuildNameToHumanizedNameConverter(); object convertedValue = converter.Convert(startingValue, null, null, null); Assert.That(convertedValue, Is.EqualTo("foo bar yo")); }