public void Should_not_replace_column_with_explict_name() { var mapping = new TestMapping(); var columnMapping = new ColumnMapping(typeof(Customer).GetProperty("DateOfBirth")); columnMapping.Named("Foo"); mapping.Mappings.Add(columnMapping); modification.ApplyTo(mapping); Assert.That(columnMapping.Attributes["Name"], Is.EqualTo("Foo")); }
public void Should_not_replace_column_with_explict_name() { var mapping = new TestMapping(); var columnMapping = new ColumnMapping(typeof(Customer).GetProperty("DateOfBirth")); columnMapping.Named("Foo"); mapping.Mappings.Add(columnMapping); modification.ApplyTo(mapping); Assert.That(columnMapping.Attributes["Name"], Is.EqualTo("Foo")); }