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);
     });
 }
Exemplo n.º 5
0
		public void ValidatePropertyType_DontAllowNull ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", null, typeof (bool), false);
		}
Exemplo n.º 6
0
		public void ValidatePropertyType_IsTransient_WrongType ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", new object (), typeof (bool), false);
		}
Exemplo n.º 7
0
		public void ValidatePropertyType_Type_Null ()
		{
			OurToolboxItem item = new OurToolboxItem ();
			item._ValidatePropertyType ("IsTransient", true, null, false);
		}
Exemplo 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);
		}
Exemplo n.º 9
0
        public void ValidatePropertyType_DontAllowNull()
        {
            OurToolboxItem item = new OurToolboxItem();

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

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

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