public void Invalid() { Assert.That(ValueSetter.CanSetValue(this, "x"), Is.False); ValueSetter setter = ValueSetter.GetValueSetter(this, "x"); Assert.That(setter.CanSetValue(), Is.False); Assert.Throws(typeof(InvalidOperationException), delegate { setter.GetValueType(); }); Assert.Throws(typeof(InvalidOperationException), delegate { setter.SetValue(null); }); }