示例#1
0
        public static void Equal(IEnumerable <CustomProperty> expected, IEnumerable <CustomProperty> actual)
        {
            // Handle when 'expected' is null.
            if (expected == null)
            {
                Assert.Null(actual);
                return;
            }
            Assert.NotNull(actual);

            var expectedCollection = expected.SafeToList();
            var actualCollection   = actual.SafeToList();

            Assert.Equal(expectedCollection.Count, actualCollection.Count);

            var count = expectedCollection.Count;

            for (var index = 0; index < count; ++index)
            {
                var expectedItem = expectedCollection[index];
                var actualItem   = actualCollection[index];

                CustomPropertyAssert.Equal(expectedItem, actualItem);
            }
        }
示例#2
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Assert Methods
        public static void Equal(CustomData expected, CustomData actual)
        {
            // Handle when 'expected' is null.
            if (expected == null)
            {
                Assert.Null(actual);
                return;
            }
            Assert.NotNull(actual);

            CustomPropertyAssert.Equal(expected.Collection, actual.Collection);
        }