public void Rename_NameIsSingleUnderscore_DoNotRename() { Assert.Equal("_", ParameterRenamer.Rename("_")); }
public void Rename_NameContainerConsecutibeUnderscores_Throws() { Assert.Throws <InvalidOperationException>(() => ParameterRenamer.Rename("a__b")); }
public void Rename_NameEndsWithUnderscore_Throws() { Assert.Throws <InvalidOperationException>(() => ParameterRenamer.Rename("a_")); }
public void Rename_NameStartsWithUnderscore_Throws(string name) { Assert.Throws <InvalidOperationException>(() => ParameterRenamer.Rename(name)); }
public void Rename_NameIsNull_Throws() { Assert.Throws <ArgumentNullException>("name", () => ParameterRenamer.Rename(null)); }
public void Rename(string name, string expectedName) { Assert.Equal(expectedName, ParameterRenamer.Rename(name)); }