public void turnOnGoodParameter() { IAMIAgregator agr2 = new Agregator(Enums.State.off); bool ret = agr2.turnOn(); Assert.AreEqual(true, ret); }
public void turnOnBadParameter() { IAMIAgregator agr2 = new Agregator(Enums.State.on); Assert.Throws <ArgumentException>(() => { agr2.turnOn(); }); }