Esempio n. 1
0
        public void CheckDatabaseName_ValidButAlmostAKeywordUsed()
        {
            String databaseName = "Index2";

            Assert.AreEqual(true, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Esempio n. 2
0
        public void CheckDatabaseName_Invalid_MaxLengthPlusOne()
        {
            String databaseName = "T23456789012345678901234567890123456789012345678901";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Esempio n. 3
0
        public void CheckDatabaseName_KeywordUsed()
        {
            String databaseName = "Index";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Esempio n. 4
0
        public void CheckDatabaseName_Valid_MaxLength()
        {
            String databaseName = "T2345678901234567890123456789012345678901234567890";

            Assert.AreEqual(true, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Esempio n. 5
0
        public void CheckDatabaseName_Valid_UnderscoreInName()
        {
            String databaseName = "TE1236__S_T";

            Assert.AreEqual(true, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Esempio n. 6
0
        public void CheckDatabaseName_InvalidCharInsideName()
        {
            String databaseName = "TE1236+ST";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Esempio n. 7
0
        public void CheckDatabaseName_InvalidFirstChar_Hat()
        {
            String databaseName = "^TEST";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Esempio n. 8
0
        public void ValidDatabaseName()
        {
            String databaseName = "TEST";

            Assert.AreEqual(true, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }