public void ToString_Collection(string schema, string objectName, string colName) { var udt = new OracleUdtInfo(schema, objectName, colName); var message = $"objectSchema={schema.ToUpper()};objectName={objectName.ToUpper()};collectionSchema={schema.ToUpper()};" + $"collectionName={colName.ToUpper()}"; Assert.Equal(message, udt.ToString()); }
public void FullCollectionName_Object_Throws(string schema, string objectName) { var udt = new OracleUdtInfo(schema, objectName); var message = "The UDT object is not set up correctly, doesn't have the collectionObject configured, udt=" + udt.ToString(); var exception = Assert.Throws <Exception>(() => udt.FullCollectionName); Assert.Equal(message, exception.Message); }