Esempio n. 1
0
        public void EqualsTest()
        {
            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.IsTrue(target.Equals(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));
        }