Beispiel #1
0
        public void ConnectionConstructorBasicOpenCloseTest()
        {
            using (PhoenixConnection c = new PhoenixConnection(this.ConnectionString()))
            {
                c.Open();

                TestContext.WriteLine("ConnectionId: {0}", c.ConnectionId);

                Assert.AreEqual <ConnectionState>(ConnectionState.Open, c.State);
                Assert.IsNotNull(c.ConnectionId);
                Assert.IsNotNull(c.ConnectionString);

                c.Close();
            }
        }