Exemplo n.º 1
0
        public void SetMat()
        {
            Int32 aMatID = 1;
            string aMatName = "Material uno";
            Int32 aMatTypeId = 1;
            bool active = true;
            decimal aCost = (decimal)32.3;
            decimal aPrice = (decimal)39.5;
            DateTime aRegDate = DateTime.Now;
            string aMemo = "Memo del Material uno";

            Material aMat = new Material();
            aMat.SetMaterial(aMatID, aMatName, aMatTypeId, active, aCost, aPrice, aMemo);

            Assert.AreEqual(aMatID, aMat.MatID);
            Assert.AreEqual(aMatName, aMat.MatName);
            Assert.AreEqual(aMatTypeId, aMat.MatTypeId);
            Assert.AreEqual(active, aMat.Active);
            Assert.AreEqual(aCost, aMat.Cost);
            Assert.AreEqual(aPrice, aMat.Price);
            Assert.AreEqual(aRegDate.ToShortDateString(), aMat.RegDate.ToShortDateString());
            Assert.AreEqual(aMemo, aMat.Memo);
        }