public void GetMemberInfo_SimpleTestItem_ReturnsMemberInfoList() { var memberInfo = FormatterUtils.GetMemberInfo(typeof(SimpleTestItem)); Assert.IsNotNull(memberInfo); Assert.AreEqual(2, memberInfo.Count); }
public void GetMemberInfo_SimpleTestItem_ReturnsMemberInfoList() { var memberInfo = FormatterUtils.GetMemberInfo(typeof(SimpleTestItem)); memberInfo.Should().NotBeNull(); memberInfo.Count.Should().Be(2); }
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); }
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); }