public void GetChangeFor_ValuePropertyNotInChangeSet_ThrowsChangeNotFoundException() { var changeSet = new ChangeSet<TestObject>(); Assert.That(() => changeSet.GetChangeFor(x => x.TestInteger), Throws.InstanceOf<ChangeNotFoundException>()); }
public void GetChangeFor_NonPropertyExpression_ThrowsArgumentException() { var changeSet = new ChangeSet<TestObject>(); Assert.That(() => changeSet.GetChangeFor(x => String.Format("{0}", x.GetType())), Throws.ArgumentException); }