public async Task Stop_completes_the_sequence_if_started(InMemoryBusEngine sut) { var sequence = await sut.StartAsync(); var isCompleted = false; sequence.Subscribe( onNext: _ => { }, onError: _ => { }, onCompleted: () => isCompleted = true ); await sut.StopAsync(); Assert.That(isCompleted, Is.True); }
public async Task Stop_is_ignored_if_not_started(InMemoryBusEngine sut) { await sut.StopAsync(); }