public void ToString_ReturnsName() { var type = typeof(Customer); var edmComplexType = new EdmComplexType(type, new EdmProperty[0]); var edmProperty = new EdmProperty("CompanyName", EdmPrimitiveType.String, edmComplexType); Assert.Equal(edmProperty.ToString(), edmProperty.Name); }
public void ToString_ReturnsName() { Type type = typeof(Customer); var edmComplexType = new EdmComplexType(type, new EdmProperty[0]); var edmProperty = new EdmProperty(type.GetProperty("CompanyName"), EdmPrimitiveType.String, edmComplexType, new Lazy <bool>(() => false)); Assert.Equal(edmProperty.ToString(), edmProperty.Name); }