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

            forecourt.PresetByValue(new Hose(1), 76.81);
            forecourt.Dispose();

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