public void FromMember_should_apply_to_members_of_given_types_type() { Assert.IsInstanceOf(typeof(TypeName), MemberName.FromMemberInfo(typeof(string).GetTypeInfo())); }
public void FromMember_should_apply_to_members_of_given_types_event() { var evt = typeof(C).GetEvent("E"); Assert.IsInstanceOf(typeof(EventName), MemberName.FromMemberInfo(evt)); }
public void FromMember_should_apply_to_members_of_given_types_property() { var property = typeof(string).GetProperty("Length"); Assert.IsInstanceOf(typeof(PropertyName), MemberName.FromMemberInfo(property)); }
public void FromMember_should_apply_to_members_of_given_types_field() { var field = typeof(string).GetField("Empty"); Assert.IsInstanceOf(typeof(FieldName), MemberName.FromMemberInfo(field)); }
public void FromMember_should_apply_to_members_of_given_types_method() { var method = typeof(string).GetMethod("CopyTo"); Assert.IsInstanceOf(typeof(MethodName), MemberName.FromMemberInfo(method)); }