public void ValidatePropertyType()
        {
            OurToolboxItem item = new OurToolboxItem();

            item._ValidatePropertyType("IsTransient", true, typeof(bool), false);
            item._ValidatePropertyType("IsTransient", String.Empty, typeof(string), false);
        }
 public void ValidatePropertyType_DontAllowNull()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         OurToolboxItem item = new OurToolboxItem();
         item._ValidatePropertyType("IsTransient", null, typeof(bool), false);
     });
 }
 public void ValidatePropertyType_IsTransient_WrongType()
 {
     Assert.Throws <ArgumentException>(() =>
     {
         OurToolboxItem item = new OurToolboxItem();
         item._ValidatePropertyType("IsTransient", new object(), typeof(bool), false);
     });
 }
 public void ValidatePropertyType_Type_Null()
 {
     Assert.Throws <NullReferenceException>(() =>
     {
         OurToolboxItem item = new OurToolboxItem();
         item._ValidatePropertyType("IsTransient", true, null, false);
     });
 }
Esempio n. 5
0
		public void ValidatePropertyType_DontAllowNull ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", null, typeof (bool), false);
		}
Esempio n. 6
0
		public void ValidatePropertyType_IsTransient_WrongType ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", new object (), typeof (bool), false);
		}
Esempio n. 7
0
		public void ValidatePropertyType_Type_Null ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", true, null, false);
		}
Esempio n. 8
0
		public void ValidatePropertyType ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", true, typeof (bool), false);
			item._ValidatePropertyType ("IsTransient", String.Empty, typeof (string), false);
		}
Esempio n. 9
0
        public void ValidatePropertyType_DontAllowNull()
        {
            OurToolboxItem item = new OurToolboxItem();

            item._ValidatePropertyType("IsTransient", null, typeof(bool), false);
        }
Esempio n. 10
0
        public void ValidatePropertyType_IsTransient_WrongType()
        {
            OurToolboxItem item = new OurToolboxItem();

            item._ValidatePropertyType("IsTransient", new object(), typeof(bool), false);
        }
Esempio n. 11
0
        public void ValidatePropertyType_Type_Null()
        {
            OurToolboxItem item = new OurToolboxItem();

            item._ValidatePropertyType("IsTransient", true, null, false);
        }