Ejemplo n.º 1
0
        public void GetMemberInfo_SimpleTestItem_ReturnsMemberInfoList()
        {
            var memberInfo = FormatterUtils.GetMemberInfo(typeof(SimpleTestItem));

            Assert.IsNotNull(memberInfo);
            Assert.AreEqual(2, memberInfo.Count);
        }
Ejemplo n.º 2
0
        public void GetMemberInfo_SimpleTestItem_ReturnsMemberInfoList()
        {
            var memberInfo = FormatterUtils.GetMemberInfo(typeof(SimpleTestItem));

            memberInfo.Should().NotBeNull();
            memberInfo.Count.Should().Be(2);
        }
Ejemplo n.º 3
0
        public void GetMemberInfo_AnonymousType_ReturnsMemberInfoList()
        {
            var anonymous  = new { prop1 = "value1", prop2 = "value2" };
            var memberInfo = FormatterUtils.GetMemberInfo(anonymous.GetType());

            Assert.IsNotNull(memberInfo);
            Assert.AreEqual(2, memberInfo.Count);
        }
Ejemplo n.º 4
0
        public void GetMemberInfo_AnonymousType_ReturnsMemberInfoList()
        {
            var anonymous  = new { prop1 = "value1", prop2 = "value2" };
            var memberInfo = FormatterUtils.GetMemberInfo(anonymous.GetType());

            memberInfo.Should().NotBeNull();
            memberInfo.Count.Should().Be(2);
        }