public void Can_add_and_remove_properties() { var complexTypeMapping = new StorageComplexTypeMapping(false); var scalarPropertyMapping = new StorageScalarPropertyMapping(new EdmProperty("P"), new EdmProperty("C")); Assert.Empty(complexTypeMapping.Properties); complexTypeMapping.AddProperty(scalarPropertyMapping); Assert.Same(scalarPropertyMapping, complexTypeMapping.Properties.Single()); complexTypeMapping.RemoveProperty(scalarPropertyMapping); Assert.Empty(complexTypeMapping.Properties); }