コード例 #1
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForDateTime()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.DateTime);

            // Assert
            Assert.AreEqual("DATETIME", result);
        }
コード例 #2
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForYear()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Year);

            // Assert
            Assert.AreEqual("YEAR", result);
        }
コード例 #3
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForUByte()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.UByte);

            // Assert
            Assert.AreEqual("TINYINT", result);
        }
コード例 #4
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForTinyText()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.TinyText);

            // Assert
            Assert.AreEqual("TINYTEXT", result);
        }
コード例 #5
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForVarString()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.VarString);

            // Assert
            Assert.AreEqual("VARCHAR", result);
        }
コード例 #6
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForBlob()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Blob);

            // Assert
            Assert.AreEqual("BLOB", result);
        }
コード例 #7
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForTimestamp()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Timestamp);

            // Assert
            Assert.AreEqual("TIMESTAMP", result);
        }
コード例 #8
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForMediumText()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.MediumText);

            // Assert
            Assert.AreEqual("MEDIUMTEXT", result);
        }
コード例 #9
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForNewDecimal()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.NewDecimal);

            // Assert
            Assert.AreEqual("DECIMAL", result);
        }
コード例 #10
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForUInt64()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.UInt64);

            // Assert
            Assert.AreEqual("BIGINT", result);
        }
コード例 #11
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForJson()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.JSON);

            // Assert
            Assert.AreEqual("JSON", result);
        }
コード例 #12
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForInt16()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Int16);

            // Assert
            Assert.AreEqual("SMALLINT", result);
        }
コード例 #13
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForGeometry()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Geometry);

            // Assert
            Assert.AreEqual("GEOMETRY", result);
        }
コード例 #14
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForFloat()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Float);

            // Assert
            Assert.AreEqual("FLOAT", result);
        }
コード例 #15
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForBinary()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Binary);

            // Assert
            Assert.AreEqual("BINARY", result);
        }
コード例 #16
0
        public void TestMySqlDbTypeToMySqlStringNameResolverForDouble()
        {
            // Setup
            var resolver = new MySqlDbTypeToMySqlStringNameResolver();

            // Act
            var result = resolver.Resolve(MySqlDbType.Double);

            // Assert
            Assert.AreEqual("DOUBLE", result);
        }