Npgsql.Tests.ReaderOldSchemaTests.GetSchemaTableWithoutResult C# (CSharp) Method

GetSchemaTableWithoutResult() private method

private GetSchemaTableWithoutResult ( ) : void
return void
        public void GetSchemaTableWithoutResult()
        {
            using (var conn = OpenConnection())
            using (var cmd = new NpgsqlCommand("SELECT 1", conn))
            using (var reader = cmd.ExecuteReader())
            {
                reader.NextResult();
                // We're no longer on a result
                Assert.That(reader.GetSchemaTable(), Is.Null);
            }
        }