public void SimpleTargetIsAssignable()
 {
     var re = new RuleExpression("SomeString");
     Assert.IsTrue(re.IsAssignable(_context));
 }
 public void MethodIsNotAssignable()
 {
     var re = new RuleExpression("Person.Age");
     Assert.IsTrue(re.IsValid(_context));
     Assert.IsFalse(re.IsAssignable(_context));
 }
 public void ReadOnlyPropertyIsNotAssignable()
 {
     var re = new RuleExpression("Person.MedicalRecordNumber");
     Assert.IsTrue(re.IsValid(_context));
     Assert.IsFalse(re.IsAssignable(_context));
 }
 public void WritablePropertyIsAssignable()
 {
     var re = new RuleExpression("Person.Salutation");
     Assert.IsTrue(re.IsAssignable(_context));
 }