コード例 #1
0
        public void ApskaiciuotiSuma_IvesimeKrepselioPrekiuSuBendraSuma8080IrSuDydziuL_TikimesGautiSuma8120()
        {
            DuomenuBaze duomenuBaze = new DuomenuBaze();

            DuomenuBaze.Krepselio_Prekes.Add(new Krepselio_preke("Veliava", 10, 800, 120));
            DuomenuBaze.Krepselio_Prekes.Add(new Krepselio_preke("Ausines", 8, 10, 16));
            ShipmentForm shipmentForm = new ShipmentForm();

            shipmentForm.ApskaiciuotiSiuntosDydi();
            shipmentForm.ApskaiciuotiSuma();
            Assert.AreEqual(8120, shipmentForm._Siunta.Suma);
        }