public void InstantiationSupplyingNullPropertyNullTypeAndRootException() { NotWritablePropertyException ex = new NotWritablePropertyException(null, null, null); Assert.AreEqual(null, ex.OffendingPropertyName); Assert.AreEqual(null, ex.ObjectType); }
public void InstantiationSupplyingPropertyTypeAndRootException() { NotWritablePropertyException ex = new NotWritablePropertyException("Doctor", typeof (TestObject), null); Assert.AreEqual("Doctor", ex.OffendingPropertyName); Assert.AreEqual(typeof(TestObject), ex.ObjectType); }