Example #1
0
        public void PotrosnjaProizvodnjaBaterijeDobriParametri(double?vreme)
        {
            Mock <IShes> shesRepo = new Mock <IShes>();
            ShesMetode   shes     = new ShesMetode(shesRepo.Object);
            double       rezultat = shes.PotrosnjaProizvodnjaBaterije(baterije, vreme);

            Assert.IsNotNull(rezultat);
        }
Example #2
0
        public void PotrosnjaProizvodnjaBaterijeLosiParametri2(double?vreme)
        {
            Mock <IShes> shesRepo = new Mock <IShes>();
            ShesMetode   shes     = new ShesMetode(shesRepo.Object);

            Assert.Throws <ArgumentNullException>(() =>
            {
                shes.PotrosnjaProizvodnjaBaterije(baterije, vreme);
            });
        }