Example #1
0
        public void SimpleName_Equals()
        {
            var objName1 = new ObjectName("id1");
            var objName2 = new ObjectName("id1");

            Assert.IsTrue(objName1.Equals(objName2));
        }
Example #2
0
        public void SimpleName_NotEquals()
        {
            var objName1 = new ObjectName("id1");
            var objName2 = new ObjectName("id2");

            Assert.IsFalse(objName1.Equals(objName2));
        }
        public bool ContainsTable(ObjectName name)
        {
            // This set can not contain the table that is backing it, so we always
            // return false for that.  This check stops an annoying recursive
            // situation for table name resolution.
            if (name.Equals(TableName))
            {
                return(false);
            }

            return(FindByName(name) != -1);
        }