public void Property_IsMarkedWithColumnType <TProperty>(Expression <Func <EntityData, TProperty> > property, TableColumnType expected) { // Arrange PropertyInfo propertyInfo = PropertyAssert.GetPropertyInfo <EntityData, TProperty>(property); // Act TableColumnAttribute attr = propertyInfo.GetCustomAttributes <TableColumnAttribute>().Single(); // Assert Assert.Equal(attr.ColumnType, expected); }