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); }
public void PotrosnjaProizvodnjaBaterijeLosiParametri2(double?vreme) { Mock <IShes> shesRepo = new Mock <IShes>(); ShesMetode shes = new ShesMetode(shesRepo.Object); Assert.Throws <ArgumentNullException>(() => { shes.PotrosnjaProizvodnjaBaterije(baterije, vreme); }); }