// PUBLIC METHODS /////////////////////////////////////////////////// #region Assert Methods public static void Equal(IRelationshipsInfo expected, IRelationshipsInfo actual) { if (expected == null) { Assert.Null(actual); return; } Assert.NotNull(actual); PropertyInfoAssert.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]; RelationshipInfoAssert.Equal(expectedItem, actualItem); } }
// PUBLIC METHODS /////////////////////////////////////////////////// #region Assert Methods public static void Equal(IMetaInfo expected, IMetaInfo actual) { if (expected == null) { Assert.Null(actual); return; } Assert.NotNull(actual); PropertyInfoAssert.Equal(expected, actual); }
// PUBLIC METHODS /////////////////////////////////////////////////// #region Assert Methods public static void Equal(IResourceIdentityInfo expected, IResourceIdentityInfo actual) { if (expected == null) { Assert.Null(actual); return; } Assert.NotNull(actual); Assert.Equal(expected.ApiType, actual.ApiType); PropertyInfoAssert.Equal(expected.Id, actual.Id); }
// PUBLIC METHODS /////////////////////////////////////////////////// #region Assert Methods public static void Equal(IAttributeInfo expected, IAttributeInfo actual) { if (expected == null) { Assert.Null(actual); return; } Assert.NotNull(actual); PropertyInfoAssert.Equal(expected, actual); Assert.Equal(expected.ApiPropertyName, actual.ApiPropertyName); Assert.Equal(expected.IsComplexType, actual.IsComplexType); }