Exemplo n.º 1
0
        public async Task Should_set_zoffset_and_receive_correct_response()
        {
            var endpoint = new MigoEndpoint(MigoIp, MigoPort);
            var migo     = new Migo(Init.LoggerFactory, endpoint);

            var expectedOffset = -0.8;
            var actualOffset   = await migo.SetZOffset(expectedOffset).ConfigureAwait(false);

            actualOffset.Should().Be(expectedOffset);
        }
Exemplo n.º 2
0
        public async Task Should_set_z_offset()
        {
            var expectedOffset = -0.8d;

            _fakeMigo
            .ReplyMode(FakeMigoMode.RequestReply)
            .ReplyZOffset(expectedOffset);

            var result = await _migo.SetZOffset(expectedOffset)
                         .ConfigureAwait(false);

            result.ZOffset.Should().Be(expectedOffset);
        }