示例#1
0
        public void TestCloningIfAllowedConnection()
        {
            //Arrange
            SqlConnectionManager con = new SqlConnectionManager(ConnectionStringParameter)
            {
                LeaveOpen = true
            };

            //Act
            IConnectionManager cloneIfAllowed = con.CloneIfAllowed();
            IConnectionManager clone          = con.Clone();

            //Assert
            Assert.Equal(cloneIfAllowed, con);
            Assert.NotEqual(clone, con);
        }