public override bool GetOutput(IOnAble a, IOnAble b) { if (b != null) { throw new ArgumentException("Not gate works only with one input"); } return(!a.IsOn()); }
public override bool GetOutput(IOnAble a, IOnAble b) { return(a.IsOn() ^ b.IsOn()); }