Exemplo n.º 1
0
 public void CopyableFlatObjectIsCopied()
 {
     CopyableNumbers n = new CopyableNumbers(3, 4.0f);
     CopyableNumbers c = (CopyableNumbers)n.Copy();
     Assert.AreNotSame(n, c);
     Assert.AreEqual(n.TheA, c.TheA);
     Assert.AreEqual(n.TheB, c.TheB);
 }
Exemplo n.º 2
0
        public void TestCloneCopyable()
        {
            CopyableNumbers n = new CopyableNumbers(3, 4.0f);
            CopyableNumbers c = (CopyableNumbers)n.Copy();

            Assert.AreNotSame(n, c);
            Assert.AreEqual(n.TheA, c.TheA);
            Assert.AreEqual(n.TheB, c.TheB);
        }
Exemplo n.º 3
0
        public void CopyableFlatObjectIsCopied()
        {
            CopyableNumbers n = new CopyableNumbers(3, 4.0f);
            CopyableNumbers c = (CopyableNumbers)n.Copy();

            Assert.AreNotSame(n, c);
            Assert.AreEqual(n.TheA, c.TheA);
            Assert.AreEqual(n.TheB, c.TheB);
        }