Beispiel #1
0
        public void TestCreateParameterNameGenerator_Twice()
        {
            //---------------Set up test pack-------------------
            IDatabaseConnection databaseConnection = new DatabaseConnectionMySql("", "");

            databaseConnection.CreateParameterNameGenerator();

            //---------------Execute Test ----------------------
            IParameterNameGenerator generator = databaseConnection.CreateParameterNameGenerator();

            //---------------Test Result -----------------------
            Assert.IsNotNull(generator);
            Assert.AreEqual("?Param0", generator.GetNextParameterName());

            //---------------Tear Down -------------------------
        }
Beispiel #2
0
        public void TestCreateParameterNameGenerator()
        {
            //---------------Set up test pack-------------------
            IDatabaseConnection databaseConnection = new DatabaseConnectionMySql("", "");
            //---------------Assert PreConditions---------------
            //---------------Execute Test ----------------------
            IParameterNameGenerator generator = databaseConnection.CreateParameterNameGenerator();

            //---------------Test Result -----------------------
            Assert.AreEqual("?", generator.PrefixCharacter);
            //---------------Tear Down -------------------------
        }