예제 #1
0
 /// <summary>
 /// Create a FormSpec
 /// </summary>
 public SpecField(int code, string name, SpecFieldDataType datatype, int length, SpecFieldFieldType fieldtype)
 {
     Code      = code;
     Name      = name;
     DataType  = datatype;
     Length    = length;
     FieldType = fieldtype;
 }
예제 #2
0
        public void DataTypeTest()
        {
            SpecField         target   = new SpecField(101, "default_name", SpecFieldDataType.Text, 10, SpecFieldFieldType.Always);   // TODO: Initialize to an appropriate value
            SpecFieldDataType expected = SpecFieldDataType.Select;
            SpecFieldDataType actual;

            target.DataType = expected;
            actual          = target.DataType;
            Assert.AreEqual(expected, actual);
        }