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); }
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); }