Esempio n. 1
0
        public async Task Should_set_bed_temperature()
        {
            _fakeMigo.ReplyMode(FakeMigoMode.RequestReply);
            _fakeMigo.ReplyGCodeDone();

            var process = await ExecuteCommand(_endpoint, "set temperature --bed=100")
                          .ConfigureAwait(false);

            process.ExitCode.Should().Be(0);
        }
Esempio n. 2
0
        public void OneTimeSetup()
        {
            _logger = Init.LoggerFactory.CreateLogger <MigoStreamTests>();
            var logger = Init.LoggerFactory.CreateLogger <FakeMigo>();

            _fakeMigo = new FakeMigo(Ip, Port, logger);
            _fakeMigo.Start();

            _fakeMigo
            .ReplyMode(FakeMigoMode.Stream)
            .StreamReplyCount(TestStreamSize);
        }
Esempio n. 3
0
        public async Task Should_get_migo_state()
        {
            _fakeMigo
            .ReplyMode(FakeMigoMode.Stream);     // state can only be responded as incoming stream

            var state = await _migo.GetState()
                        .ConfigureAwait(false);

            state.Should().BeEquivalentTo(Some.FixedStateModel);
        }