public static void MutatePropertyThrowsIfContextIsNull() { AssertExtensions.Throws <ArgumentNullException>("context", () => Mutator.MutateProperty <TestClass>(null, default(PropertyInfo)) ); AssertExtensions.Throws <ArgumentNullException>("context", () => Mutator.MutateProperty <TestClass, object>(null, default(PropertyInfo), null) ); AssertExtensions.Throws <ArgumentNullException>("context", () => Mutator.MutateProperty <TestClass, object>(null, x => x.IntergerTen) ); AssertExtensions.Throws <ArgumentNullException>("context", () => Mutator.MutateProperty <TestClass, object>(null, x => x.IntergerTen, null) ); }