public void TypeString() { var typewriter = new DataTypeWriter(); var column = new DatabaseColumn(); column.DataType = new DataType("VARCHAR2", "System.String"); var result = typewriter.Write(column); Assert.AreEqual("string", result); }
public void TypeInteger() { var typewriter = new DataTypeWriter(); var column = new DatabaseColumn(); column.DataType = new DataType("NUMBER", "System.Int32"); var result = typewriter.Write(column); Assert.AreEqual("int", result); }