Esempio n. 1
0
        public void EqualsObjectTest()
        {
            CExtendedCodeUnit target = new CExtendedCodeUnit(new CCodeUnit(new CElementPosition(12, 456), ")"), 11, 3);
            CExtendedCodeUnit other  = new CExtendedCodeUnit(new CCodeUnit(new CElementPosition(54, 678), ")"), 22, 44);

            Assert.IsFalse(target.EqualsObject(other));

            other = new CExtendedCodeUnit(new CCodeUnit(new CElementPosition(12, 456), ")"), 11, 3);
            Assert.IsTrue(target.EqualsObject(other));
        }
Esempio n. 2
0
        public void CloneTest()
        {
            CExtendedCodeUnit target = new CExtendedCodeUnit(new CCodeUnit(new CElementPosition(12, 456), ")"), 11, 3);
            object            actual = target.Clone();

            Assert.IsNotNull(actual);
            Assert.IsTrue(target.Equals(actual));
            Assert.IsTrue(target.EqualsObject(actual));
        }