示例#1
0
        public void TableColumnInfoRaw_ctor_ParametersBecomeProperties()
        {
            // Arrange / Act
            _biz = new TableColumnInfoRaw(
                _tableName,
                _tableDescription,
                _columnName,
                _columnDescription,
                _columnType,
                _columnLength,
                _defaultValue,
                _allowsNull,
                _keySequence,
                _lastModified
                );

            // Assert
            Assert.AreEqual(_tableName, _biz.TableName, nameof(_biz.TableName));
            Assert.AreEqual(_tableDescription, _biz.TableDescription, nameof(_biz.TableDescription));
            Assert.AreEqual(_columnName, _biz.ColumnName, nameof(_biz.ColumnName));
            Assert.AreEqual(_columnDescription, _biz.ColumnDescription, nameof(_biz.ColumnDescription));
            Assert.AreEqual(_columnType, _biz.ColumnType, nameof(_biz.ColumnType));
            Assert.AreEqual(_columnLength, _biz.ColumnLength, nameof(_biz.ColumnLength));
            Assert.AreEqual(_defaultValue, _biz.DefaultValue, nameof(_biz.DefaultValue));
            Assert.AreEqual(_allowsNull, _biz.AllowsNull, nameof(_biz.AllowsNull));
            Assert.AreEqual(_keySequence, _biz.KeySequence, nameof(_biz.KeySequence));
            Assert.AreEqual(_lastModified, _biz.LastModified, nameof(_biz.LastModified));
        }
示例#2
0
 public void TableColumnInfoRaw_ctor_ArgumentNullExceptionThrownWhenColumnTypeNull()
 {
     // Arrange / Act / Assert
     _biz = new TableColumnInfoRaw(
         _tableName,
         _tableDescription,
         _columnName,
         _columnDescription,
         null,
         _columnLength,
         _defaultValue,
         _allowsNull,
         _keySequence,
         _lastModified
         );
 }
示例#3
0
        public void TableColumnInfoRaw_ctor_WhenColumnDescriptionNullSetAsEmptyString()
        {
            // Arrange / Act / Assert
            _biz = new TableColumnInfoRaw(
                _tableName,
                _tableDescription,
                _columnName,
                null,
                _columnType,
                _columnLength,
                _defaultValue,
                _allowsNull,
                _keySequence,
                _lastModified
                );

            // Assert
            Assert.AreEqual(string.Empty, _biz.ColumnDescription);
        }