Пример #1
0
        /// <summary>
        /// An xml element path is considered to be equal if
        /// each path item has the same name and namespace.
        /// </summary>
        public override bool Equals(object obj)
        {
            var rhsPath = obj as XmlElementPath;

            if (rhsPath == null)
            {
                return(false);
            }

            return(_elements.Equals(rhsPath._elements));
        }
Пример #2
0
 public void EmptyCollectionsAreEqual()
 {
     Assert.IsTrue(lhs.Equals(rhs));
 }