public void Should_have_data_types() { IDataType dt = new DataTypeString(); Assert.AreEqual(DATA_TYPE.STRING, dt.DataType); dt = new DataTypeNumeric(); Assert.AreEqual(DATA_TYPE.NUMERIC, dt.DataType); }
public void Should_store_default_value_for_numeric() { IDataType str = new DataTypeNumeric(); Assert.AreEqual("0", str.Value); str.Value ="10"; Assert.AreEqual("10", str.Value); }
public DataTypeValidationTest() { str = new DataTypeString(); str.Value = "value"; num = new DataTypeNumeric(); num.Value = "4,12"; }