public void CheckValueTypeUnsupportedGenericType() { BeanDefinition beanDefinition = BeanDescriptor.GetDefinition(new Bean()); BeanPropertyDescriptor primaryKey = beanDefinition.PrimaryKey; primaryKey.CheckValueType(new Generic <Bean>()); }
public void CheckValueTypeBadType() { BeanDefinition beanDefinition = BeanDescriptor.GetDefinition(new Bean()); BeanPropertyDescriptor primaryKey = beanDefinition.PrimaryKey; primaryKey.CheckValueType(String.Empty); }
public void CheckValueTypeBadGenericType() { BeanDefinition beanDefinition = BeanDescriptor.GetDefinition(new Bean()); BeanPropertyDescriptor primaryKey = beanDefinition.PrimaryKey; Nullable <double> d = new Nullable <double>(); d = 3; primaryKey.CheckValueType(d); }