public void SpecialCharacterGetReplacedWithTheirNames() { var codeNameing = new FakeCodeNamer(); Assert.Equal( "AsteriskAsteriskSpaceAsteriskAsteriskPercentSignCircumflexAccentSpaceCircumflexAccentCircumflexAccentDollarSignSpaceNumberSignNumberSignDollarSign", codeNameing.GetEnumMemberName("** **%^ ^^$ ##$")); Assert.Equal("_asterisk", codeNameing.GetFieldName("*")); Assert.Equal( "OneTwoThreeProperty", codeNameing.GetPropertyName("123Property")); }
public void SpecialCharacterGetReplacedWithTheirNames() { var codeNameing= new FakeCodeNamer(); Assert.Equal( "AsteriskAsteriskSpaceAsteriskAsteriskPercentSignCircumflexAccentSpaceCircumflexAccentCircumflexAccentDollarSignSpaceNumberSignNumberSignDollarSign", codeNameing.GetEnumMemberName("** **%^ ^^$ ##$")); Assert.Equal("_asterisk", codeNameing.GetFieldName("*")); Assert.Equal( "OneTwoThreeProperty", codeNameing.GetPropertyName("123Property")); }