Beispiel #1
0
        public void ShouldSerializeFalseEffectOnCanResetTest()
        {
            PropertyDescriptor p = TypeDescriptor.GetProperties(typeof(ShouldSerializeFalseEffectOnCanReset_test))["Prop"];
            ShouldSerializeFalseEffectOnCanReset_test test = new ShouldSerializeFalseEffectOnCanReset_test();

            Assert.IsFalse(p.ShouldSerializeValue(test), "1");
            Assert.IsFalse(p.CanResetValue(test), "2");
        }
		public void ShouldSerializeFalseEffectOnCanResetTest ()
		{
			PropertyDescriptor p = TypeDescriptor.GetProperties (typeof (ShouldSerializeFalseEffectOnCanReset_test))["Prop"];
			ShouldSerializeFalseEffectOnCanReset_test test = new ShouldSerializeFalseEffectOnCanReset_test ();

			Assert.IsFalse (p.ShouldSerializeValue (test), "1");
			Assert.IsFalse (p.CanResetValue (test), "2");
		}