public static void GetString(string input, string expected) { var type = PrimitiveTypes.YearToMonth(); var ytm = SqlYearToMonth.Parse(input); var s = type.ToSqlString(ytm); Assert.Equal(expected, s); }
public static void Serialize() { var type = PrimitiveTypes.YearToMonth(); var result = BinarySerializeUtil.Serialize(type); Assert.Equal(type, result); }