Ejemplo n.º 1
0
        public void Block_SingleHose_BlocksHose()
        {
            var status = string.Empty;
            _mockIO.Setup(c => c.SendAndReceive(WayneCommands.BlockHose, "012", ref status))
                .Verifiable();
            var forecourt = new Wayne(_mockIO.Object);

            forecourt.Block(new Hose(1));
            forecourt.Dispose();

            _mockIO.Verify(c => c.SendAndReceive(WayneCommands.BlockHose, "012", ref status));
        }