예제 #1
0
        public void TransponderReceiver_DetachATMwithoutAttachingIt_observersCountIs0()
        {
            var receiver = TransponderReceiverFactory.CreateTransponderDataReceiver();
            var system   = new ATM.TransponderReceiver(receiver);

            system.Detach(uut);

            Assert.That(() => system.getObserverCount().Equals(0));
        }
        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));
        }