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)); }
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)); }