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);
     });
 }
Beispiel #5
0
		public void ValidatePropertyType_DontAllowNull ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", null, typeof (bool), false);
		}
Beispiel #6
0
		public void ValidatePropertyType_IsTransient_WrongType ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", new object (), typeof (bool), false);
		}
Beispiel #7
0
		public void ValidatePropertyType_Type_Null ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", true, null, false);
		}
Beispiel #8
0
		public void ValidatePropertyType ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", true, typeof (bool), false);
			item._ValidatePropertyType ("IsTransient", String.Empty, typeof (string), false);
		}
Beispiel #9
0
        public void ValidatePropertyType_DontAllowNull()
        {
            OurToolboxItem item = new OurToolboxItem();

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

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

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