public void IsGetterPropertyWithAttribute_returns_false_for_invocation_of_non_getter_property() { var methodInfo = typeof(string).GetMethod(nameof(string.GetTypeCode)); var invocation = new FakeInvocation(methodInfo); Assert.False(invocation.IsGetterPropertyWithAttribute <SelectorAttribute>()); }
public void IsGetterPropertyWithAttribute_returns_true_for_invocation_of_getter_property_marked_with_given_attribute() { var methodInfo = typeof(FakePageObject).GetProperty(nameof(FakePageObject.SelectorForElementHandle)).GetMethod; var invocation = new FakeInvocation(methodInfo); Assert.True(invocation.IsGetterPropertyWithAttribute <SelectorAttribute>()); }