/// <summary>
        ///     Compares two collection members for equality
        /// </summary>
        protected bool ItemsEqual(object x, object y)
        {
            Tolerance tolerance = Tolerance.Zero;

            return(comparer.AreEqual(x, y, ref tolerance));
        }
示例#2
0
        private bool ItemsEqual(object expected, object actual)
        {
            Tolerance tolerance = Tolerance.Zero;

            return(comparer.AreEqual(expected, actual, ref tolerance));
        }
示例#3
0
        /// <summary>
        ///     Test whether the constraint is satisfied by a given value
        /// </summary>
        /// <param name="actual">The value to be tested</param>
        /// <returns>True for success, false for failure</returns>
        public override bool Matches(object actual)
        {
            internalActual = actual;

            return(comparer.AreEqual(expected, actual, ref tolerance));
        }