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