コード例 #1
0
 public void HasPropertyHelperWorksForValidPublicMethodOnInstance()
 {
     Assert.That(_testArgument.HasMethod("gettype"), Is.True);
     Assert.That(_mockUser.HasMethod("capitalizename"), Is.True);
     Assert.That(new Exception().HasMethod("getbaseexception"), Is.True);
     Assert.That(new Exception().HasMethod("iPhone"), Is.False);
 }