Example #1
0
 public void MatchesReadAccess_False_WithReadOnlyProperty ()
 {
   var binding = new MethodInfoBinding (Method, AssociatedExpression);
   Assert.That (binding.MatchesReadAccess (WriteOnlyProperty), Is.False);
 }
Example #2
0
 public void MatchesReadAccess_False ()
 {
   var binding = new MethodInfoBinding (Method, AssociatedExpression);
   Assert.That (binding.MatchesReadAccess (Field), Is.False);
 }
Example #3
0
 public void MatchesReadAccess_True_WithProperty ()
 {
   var binding = new MethodInfoBinding (Method, AssociatedExpression);
   Assert.That (binding.MatchesReadAccess (Property), Is.True);
 }