public void TestCanCloseConnection(){ using(var simpleConnectionFactory = new SimpleConnectionFactory(string.Empty)) using(var connection = simpleConnectionFactory.Open()) { simpleConnectionFactory.Close(connection); Assert.IsFalse(connection.IsConnected); } }
public void TestCanOpenConnection(){ using(var simpleConnectionFactory = new SimpleConnectionFactory(string.Empty)) using(var connection = simpleConnectionFactory.Open()){ Assert.IsNotNull(connection); } }