public void WriteDupNamesWithCamelCase() { string namespacePrefix = string.Empty; Context = new ODataT4CodeGenerator.CodeGenerationContext(DupNamesEdmx, namespacePrefix); Context.EnableNamingAlias = true; ODataClientTemplateImp template = new ODataClientTemplateImp(Context); IEdmComplexType complexType = Context.GetSchemaElements("Namespace1").OfType<IEdmComplexType>().First(); template.SetPropertyIdentifierMappingsIfNameConflicts(complexType.Name, complexType); template.WritePropertiesForStructuredType(complexType.DeclaredProperties); List<string> expectedActions = new List<string> { "WritePropertyForStructuredType(String, Name, Name2, Name2, _Name21, , False)", "WritePropertyForStructuredType(String, name, Name3, Name3, _Name3, , False)", "WritePropertyForStructuredType(String, Name1, Name1, Name1, _Name1, , False)", "WritePropertyForStructuredType(String, _Name2, _Name2, _Name2, __Name2, , False)", }; template.CalledActions.Should().Contain(expectedActions); }