Пример #1
0
        public void CheckDatabaseName_ValidButAlmostAKeywordUsed()
        {
            String databaseName = "Index2";

            Assert.AreEqual(true, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Пример #2
0
        public void CheckDatabaseName_Invalid_MaxLengthPlusOne()
        {
            String databaseName = "T23456789012345678901234567890123456789012345678901";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Пример #3
0
        public void CheckDatabaseName_KeywordUsed()
        {
            String databaseName = "Index";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Пример #4
0
        public void CheckDatabaseName_Valid_MaxLength()
        {
            String databaseName = "T2345678901234567890123456789012345678901234567890";

            Assert.AreEqual(true, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Пример #5
0
        public void CheckDatabaseName_Valid_UnderscoreInName()
        {
            String databaseName = "TE1236__S_T";

            Assert.AreEqual(true, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Пример #6
0
        public void CheckDatabaseName_InvalidCharInsideName()
        {
            String databaseName = "TE1236+ST";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Пример #7
0
        public void CheckDatabaseName_InvalidFirstChar_Hat()
        {
            String databaseName = "^TEST";

            Assert.AreEqual(false, InstallerInterface.IsValidSqlDatabaseName(databaseName));
        }
Пример #8
0
        public void ValidDatabaseName()
        {
            String databaseName = "TEST";

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