private void CheckGate(IGate gate, bool x,bool y, bool q) { Assert.AreEqual(q, gate.Output(new Tuple<bool,bool>(x,y))); }