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