Npgsql.Tests.CommandBuilderTests.DeriveInvalidFunction C# (CSharp) Method

DeriveInvalidFunction() private method

private DeriveInvalidFunction ( ) : void
return void
        public void DeriveInvalidFunction()
        {
            using (var conn = OpenConnection())
            {
                var invalidCommandName = new NpgsqlCommand("invalidfunctionname", conn);
                Assert.That(() => NpgsqlCommandBuilder.DeriveParameters(invalidCommandName),
                    Throws.Exception.TypeOf<InvalidOperationException>()
                                    .With.Message.Contains("does not exist"));
            }
        }