public static void SerializeExplicit() { var type = new SqlDayToSecondType(); var result = SqlTypeUtil.Serialize(type); Assert.Equal(type, result); }
public static void SerializeExplicit(int value) { var type = PrimitiveTypes.Array(value); var result = SqlTypeUtil.Serialize(type); Assert.Equal(type, result); }
public static void SerializeExplicit(SqlTypeCode typeCode, int precision, int scale) { var type = new SqlNumericType(typeCode, precision, scale); var result = SqlTypeUtil.Serialize(type); Assert.Equal(type, result); }
public static void SerializeExplicit(SqlTypeCode typeCode) { var type = new SqlDateTimeType(typeCode); var result = SqlTypeUtil.Serialize(type); Assert.Equal(type, result); }
public static void SerializeExplicit() { var type = PrimitiveTypes.YearToMonth(); var result = SqlTypeUtil.Serialize(type); Assert.Equal(type, result); }
public void SerializeExplicit(SqlTypeCode typeCode) { var type = new SqlBooleanType(typeCode); var result = SqlTypeUtil.Serialize(type); Assert.Equal(type, result); }
public static void SerializeExplicit(SqlTypeCode typeCode, int maxSize, string locale) { var culture = String.IsNullOrEmpty(locale) ? null : new CultureInfo(locale); var type = new SqlCharacterType(typeCode, maxSize, culture); var result = SqlTypeUtil.Serialize(type); Assert.Equal(type, result); }