Exemple #1
0
 public void FromMember_should_apply_to_members_of_given_types_type()
 {
     Assert.IsInstanceOf(typeof(TypeName), MemberName.FromMemberInfo(typeof(string).GetTypeInfo()));
 }
Exemple #2
0
        public void FromMember_should_apply_to_members_of_given_types_event()
        {
            var evt = typeof(C).GetEvent("E");

            Assert.IsInstanceOf(typeof(EventName), MemberName.FromMemberInfo(evt));
        }
Exemple #3
0
        public void FromMember_should_apply_to_members_of_given_types_property()
        {
            var property = typeof(string).GetProperty("Length");

            Assert.IsInstanceOf(typeof(PropertyName), MemberName.FromMemberInfo(property));
        }
Exemple #4
0
        public void FromMember_should_apply_to_members_of_given_types_field()
        {
            var field = typeof(string).GetField("Empty");

            Assert.IsInstanceOf(typeof(FieldName), MemberName.FromMemberInfo(field));
        }
Exemple #5
0
        public void FromMember_should_apply_to_members_of_given_types_method()
        {
            var method = typeof(string).GetMethod("CopyTo");

            Assert.IsInstanceOf(typeof(MethodName), MemberName.FromMemberInfo(method));
        }