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

using_ISqlConnectionController_extension_methods_thows_a_SqlDetailedException() private method

        public void using_ISqlConnectionController_extension_methods_thows_a_SqlDetailedException()
        {
            var bug = new SqlCommand( "bug" );
            using( var ctx = new SqlStandardCallContext( TestHelper.Monitor ) )
            {
                var c = ctx[TestHelper.MasterConnectionString];
                c.Invoking( co => co.ExecuteNonQuery( bug ) ).Should().Throw<SqlDetailedException>();
                c.Invoking( co => co.ExecuteScalar( bug ) ).Should().Throw<SqlDetailedException>();
                c.Invoking( co => co.ExecuteSingleRow( bug, r => 0 ) ).Should().Throw<SqlDetailedException>();
                c.Invoking( co => co.ExecuteReader( bug, r => 0 ) ).Should().Throw<SqlDetailedException>();
            }
        }