public void TransponderReceiver_AttachATM_observersCountIs1() { var receiver = TransponderReceiverFactory.CreateTransponderDataReceiver(); var system = new ATM.TransponderReceiver(receiver); system.Attach(uut); Assert.That(() => system.getObserverCount().Equals(1)); }
public void TransponderReceiver_AttachATMthenDetach_observersCountIs0() { var receiver = TransponderReceiverFactory.CreateTransponderDataReceiver(); var system = new ATM.TransponderReceiver(receiver, consoleOutput); system.Attach(uut); system.Detach(uut); Assert.That(() => system.getObserverCount().Equals(0)); }