CK.SqlServer.Tests.ISqlConnectionControllerExtensionTests.using_ISqlConnectionController_extension_methods_async_thows_a_SqlDetailedException C# (CSharp) Method

using_ISqlConnectionController_extension_methods_async_thows_a_SqlDetailedException() private method

        public void using_ISqlConnectionController_extension_methods_async_thows_a_SqlDetailedException()
        {
            var bug = new SqlCommand( "bug" );
            using( var ctx = new SqlStandardCallContext( TestHelper.Monitor ) )
            {
                var c = ctx[TestHelper.MasterConnectionString];
                c.Awaiting( co => co.ExecuteNonQueryAsync( bug ) ).Should().Throw<SqlDetailedException>();
                c.Awaiting( co => co.ExecuteScalarAsync( bug ) ).Should().Throw<SqlDetailedException>();
                c.Awaiting( co => co.ExecuteSingleRowAsync( bug, r => 0 ) ).Should().Throw<SqlDetailedException>();
                c.Awaiting( co => co.ExecuteReaderAsync( bug, r => 0 ) ).Should().Throw<SqlDetailedException>();
            }
        }