Beispiel #1
0
        public void ApskaiciuotiSiuntosDydi_IvesimeKrepselioPrekiuSuBendruTuriu48160_TikimesKadDydisNebusL()
        {
            DuomenuBaze duomenuBaze = new DuomenuBaze();

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

            shipmentForm.ApskaiciuotiSiuntosDydi();
            Assert.AreNotEqual('S', shipmentForm._Siunta.Siuntos_dydis);
        }
Beispiel #2
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);
        }