Exemplo n.º 1
0
        public void CloneTest()
        {
            CNumber_Integer target = new CNumber_Integer(42.0);
            CNumber_Integer copy   = (CNumber_Integer)target.Clone();

            Assert.IsTrue(target.Equals(copy));
        }
Exemplo n.º 2
0
        public void EqualsTest()
        {
            CNumber_Integer a = new CNumber_Integer("0x1234.5678");
            CNumber_Integer b = new CNumber_Integer("0x1234.5678");

            Assert.IsTrue(a.Equals(b));
        }