public void ThrowsOnInvalid(string original) { Assert.Throws <ArgumentException>(() => NameUtils.ConvertParameterName(original)); }
public void ThrowsOnNull() { Assert.Throws <ArgumentNullException>(() => NameUtils.ConvertParameterName(null)); }
public void ConvertsValid(string original, string expected) { string actual = NameUtils.ConvertParameterName(original); Assert.Equal(expected, actual, ignoreLineEndingDifferences: true); }