Exemplo n.º 1
0
        public void CheckValueTypeUnsupportedGenericType()
        {
            BeanDefinition         beanDefinition = BeanDescriptor.GetDefinition(new Bean());
            BeanPropertyDescriptor primaryKey     = beanDefinition.PrimaryKey;

            primaryKey.CheckValueType(new Generic <Bean>());
        }
Exemplo n.º 2
0
        public void CheckValueTypeBadType()
        {
            BeanDefinition         beanDefinition = BeanDescriptor.GetDefinition(new Bean());
            BeanPropertyDescriptor primaryKey     = beanDefinition.PrimaryKey;

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

            d = 3;
            primaryKey.CheckValueType(d);
        }