Ejemplo n.º 1
0
        public static void Equal(IEnumerable <CustomData> expected, IEnumerable <CustomData> 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];

                CustomDataAssert.Equal(expectedItem, actualItem);
            }
        }
Ejemplo n.º 2
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Assert Methods
        public static void Equal(Polygon expected, Polygon actual)
        {
            // Handle when 'expected' is null.
            if (expected == null)
            {
                Assert.Null(actual);
                return;
            }
            Assert.NotNull(actual);

            PointAssert.Equal(expected.Points, actual.Points);
            CustomDataAssert.Equal(expected.CustomData, actual.CustomData);
        }
Ejemplo n.º 3
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Assert Methods
        public static void Equal(Point expected, Point actual)
        {
            // Handle when 'expected' is null.
            if (expected == null)
            {
                Assert.Null(actual);
                return;
            }
            Assert.NotNull(actual);

            Assert.Equal(expected.X, actual.X);
            Assert.Equal(expected.Y, actual.Y);
            CustomDataAssert.Equal(expected.CustomData, actual.CustomData);
        }
Ejemplo n.º 4
0
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Assert Methods
        public static void Equal(Line expected, Line actual)
        {
            // Handle when 'expected' is null.
            if (expected == null)
            {
                Assert.Null(actual);
                return;
            }
            Assert.NotNull(actual);

            PointAssert.Equal(expected.Point1, actual.Point1);
            PointAssert.Equal(expected.Point2, actual.Point2);
            CustomDataAssert.Equal(expected.CustomData, actual.CustomData);
        }