public void LosiParametriKonstruktor(double capacity, string id, double maxPower, Enums.BatteryRezim state, int time) { Assert.Throws <ArgumentOutOfRangeException>( () => { Common.DTO.BatteryDTO dtoB = new Common.DTO.BatteryDTO(capacity, id, maxPower, state, time); } ); }
public void DobriParametriKonstruktor(double capacity, string id, double maxPower, Enums.BatteryRezim state, int time) { Common.DTO.BatteryDTO dtoB = new Common.DTO.BatteryDTO(capacity, id, maxPower, state, time); Assert.AreNotEqual(null, dtoB); Assert.AreEqual(dtoB.Capacity, capacity); Assert.AreEqual(dtoB.Id, id); Assert.AreEqual(dtoB.MaxPower, maxPower); Assert.AreEqual(dtoB.State, state); Assert.AreEqual(dtoB.Time, time); }