Exemple #1
0
        public void CopyMatType()
        {
            Int32  anID1  = 1;
            string aName1 = "Familia de material uno";
            string aMemo1 = "Esto es un ejemplo de la familia de material 1.";
            Int32  anID2  = 0;
            string aName2 = null;
            string aMemo2 = null;

            MaterialType aMatType1 = new MaterialType(anID1, aName1, aMemo1);
            MaterialType aMatType2 = new MaterialType();

            Assert.AreEqual(anID1, aMatType1.MatTypeID);
            Assert.AreEqual(aName1, aMatType1.Name);
            Assert.AreEqual(aMemo1, aMatType1.Memo);
            Assert.AreEqual(anID2, aMatType2.MatTypeID);
            Assert.AreEqual(aName2, aMatType2.Name);
            Assert.AreEqual(aMemo2, aMatType2.Memo);

            aMatType2.CopyMatType(aMatType1);

            Assert.AreEqual(anID1, aMatType2.MatTypeID);
            Assert.AreEqual(aName1, aMatType2.Name);
            Assert.AreEqual(aMemo1, aMatType2.Memo);
        }