public void openConnection_SuccessTest()
        {
            // given
            var connectionStringBuilder = new BigQueryConnectionStringBuilder();

            // when
            using BigQueryConnection connection = new BigQueryConnection(connectionStringBuilder.ToString());
            connection.Open();

            // then
            Assert.AreEqual(ConnectionState.Open, connection.State);
        }
示例#2
0
        public void Get_DataSets_SuccessTest()
        {
            // given
            var connectionString = new BigQueryConnectionStringBuilder().ToString();

            using BigQueryConnection connection = new BigQueryConnection(connectionString);
            connection.Open();

            // when
            string[] dataSetNames = connection.GetDataSetNames();

            // then
            Assert.IsNotEmpty(dataSetNames);
        }