public static async ValueTask DefaultMessageBus()
        {
            await using var ctxt = TestableTestAssemblyRunnerContext.Create();
            await ctxt.InitializeAsync();

            var result = ctxt.MessageBus;

            Assert.IsType <MessageBus>(result);
        }
        public static async ValueTask GuardClause()
        {
            await using var ctxt = TestableTestAssemblyRunnerContext.Create();

            var ex = Record.Exception(() => ctxt.MessageBus);

            Assert.IsType <InvalidOperationException>(ex);
            Assert.Equal($"Attempted to get MessageBus on an uninitialized '{typeof(TestableTestAssemblyRunnerContext).FullName}' object", ex.Message);
        }
        public static async ValueTask SyncMessageBusOption()
        {
            var executionOptions = _TestFrameworkOptions.ForExecution();

            executionOptions.SetSynchronousMessageReporting(true);
            await using var ctxt = TestableTestAssemblyRunnerContext.Create(executionOptions);
            await ctxt.InitializeAsync();

            var result = ctxt.MessageBus;

            Assert.IsType <SynchronousMessageBus>(result);
        }