// PUBLIC METHODS /////////////////////////////////////////////////// #region Assert Methods public static void Equal(IAttributesInfo expected, IAttributesInfo actual) { if (expected == null) { Assert.Null(actual); return; } Assert.NotNull(actual); MemberInfoAssert.Equal(expected, actual); var expectedList = expected.Collection.SafeToList(); var actualList = actual.Collection.SafeToList(); Assert.Equal(expectedList.Count, actualList.Count); var count = expectedList.Count; for (var i = 0; i < count; ++i) { var expectedItem = expectedList[i]; var actualItem = actualList[i]; AttributeInfoAssert.Equal(expectedItem, actualItem); } }
// PUBLIC METHODS /////////////////////////////////////////////////// #region Assert Methods public static void Equal(IPropertyInfo expected, IPropertyInfo actual) { if (expected == null) { Assert.Null(actual); return; } Assert.NotNull(actual); MemberInfoAssert.Equal(expected, actual); Assert.Equal(expected.ClrPropertyName, actual.ClrPropertyName); Assert.Equal(expected.ClrPropertyType, actual.ClrPropertyType); }