public void TestMySqlDbTypeNameToClientTypeResolverForTinyInt() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("TINYINT"); // Assert Assert.AreEqual(typeof(sbyte), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForNone() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("NONE"); // Assert Assert.AreEqual(typeof(object), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForYear() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("YEAR"); // Assert Assert.AreEqual(typeof(int), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForSmallInt() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("SMALLINT"); // Assert Assert.AreEqual(typeof(short), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForReal() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("REAL"); // Assert Assert.AreEqual(typeof(double), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForFloat() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("FLOAT"); // Assert Assert.AreEqual(typeof(float), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForTime() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("TIME"); // Assert Assert.AreEqual(typeof(TimeSpan), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForMultiPolygon() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("MULTIPOLYGON"); // Assert Assert.AreEqual(typeof(byte[]), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForVarChar() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("VARCHAR"); // Assert Assert.AreEqual(typeof(string), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForDateTime2() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("DATETIME2"); // Assert Assert.AreEqual(typeof(DateTime), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForInteger() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("INTEGER"); // Assert Assert.AreEqual(typeof(long), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForMediumText() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("MEDIUMTEXT"); // Assert Assert.AreEqual(typeof(string), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForBoolean() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("BOOLEAN"); // Assert Assert.AreEqual(typeof(bool), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForBinary() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("BINARY"); // Assert Assert.AreEqual(typeof(byte[]), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForNumeric() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("NUMERIC"); // Assert Assert.AreEqual(typeof(decimal), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForMediumBlob() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("MEDIUMBLOB"); // Assert Assert.AreEqual(typeof(byte[]), result); }
public void TestMySqlDbTypeNameToClientTypeResolverForMultiLineString() { // Setup var resolver = new MySqlConnectorDbTypeNameToClientTypeResolver(); // Act var result = resolver.Resolve("MULTILINESTRING"); // Assert Assert.AreEqual(typeof(byte[]), result); }