コード例 #1
0
        public void ClearMatType()
        {
            Int32  anID  = 7;
            string aName = "Una familia de material";
            string aMemo = "Esto es un ejemplo de una familia de material.";

            MaterialType aMatType = new MaterialType(anID, aName, aMemo);

            Assert.AreEqual(anID, aMatType.MatTypeID);
            Assert.AreEqual(aName, aMatType.Name);
            Assert.AreEqual(aMemo, aMatType.Memo);

            aMatType.ClearMatType();
            MaterialType aMatTypeEmpty = new MaterialType();

            Assert.AreEqual(aMatTypeEmpty.MatTypeID, aMatType.MatTypeID);
            Assert.AreEqual(aMatTypeEmpty.Name, aMatType.Name);
            Assert.AreEqual(aMatTypeEmpty.Memo, aMatType.Memo);
        }