public void GetColumnNameTest() { // Arrange. var frenchCulture = new CultureInfo("fr-FR"); var spanishCulture = new CultureInfo("es-ES"); var table = new TableDefinition("TestTable"); table.SupportedLocalizations.Add(new LocalizationInfoAttribute(Constants.DefaultCultureName)); table.SupportedLocalizations.Add(new LocalizationInfoAttribute(frenchCulture.Name)); var simpleField = new FieldDefinition("Field1", ColumnTypes.String, table, null); var localizedField = new FieldDefinition("Field2", ColumnTypes.String, table, null, allowLocalizedData: true); // Act / Assert. Assert.AreEqual("Field1", simpleField.GetColumnName(Constants.DefaultCultureName)); Assert.AreEqual("Field1", simpleField.GetColumnName(frenchCulture.Name)); Assert.AreEqual("Field1", simpleField.GetColumnName(spanishCulture.Name)); Assert.AreEqual("Field2", localizedField.GetColumnName(Constants.DefaultCultureName)); Assert.AreEqual("Field2_fr_FR", localizedField.GetColumnName(frenchCulture.Name)); Assert.AreEqual("Field2", localizedField.GetColumnName(spanishCulture.Name)); }