public void PreuzmiIzmereneVrednostiPanele() { Mock <IShes> shesRepository = new Mock <IShes>(); shesRepository.Setup(x => x.VratiIzmereneVrednostiPanela()).Returns(panelIzme); ShesMetode shesMetode = new ShesMetode(shesRepository.Object); List <PanelIzmereneVrednosti> result = shesMetode.PreuzmiIzmereneVrednostiPanela(); Assert.IsNotNull(result); Assert.AreEqual(panelIzme.Count, result.Count); Assert.AreEqual(panelIzme.ElementAt(0), result.ElementAt(0)); Assert.AreEqual(panelIzme.ElementAt(1), result.ElementAt(1)); }