public void SetNullBehavesAsExpectedForVariableLengthColumn()
        {
            const int zeroLength = 0;

            var sut = new StandardDataTypeImpl(AnyValidIndexWillDo, AnyBulkCopyDataTypeWillDo, AnyValidLengthWillDo, BindingFlags.VariableLengthOut);

            Assert.AreEqual(IndicatorLength, sut.IndicatorLength);

            sut.SetLength(AnyValidLengthWillDo);

            Assert.AreEqual(AnyValidLengthWillDo, GetIndicator(sut));

            sut.SetNull();

            Assert.AreEqual(zeroLength, GetIndicator(sut));
        }
        public void SetNullThrowsExceptionWhenIndicatorNotPresent()
        {
            var sut = new StandardDataTypeImpl(AnyValidIndexWillDo, AnyBulkCopyDataTypeWillDo, AnyValidLengthWillDo, BindingFlags.None);

            sut.SetNull();
        }
        public void SetNullBehavesAsExpectedForNullableColumn()
        {
            var sut = new StandardDataTypeImpl(AnyValidIndexWillDo, AnyBulkCopyDataTypeWillDo, AnyValidLengthWillDo, BindingFlags.Nullable);

            Assert.AreEqual(IndicatorLength, sut.IndicatorLength);

            sut.SetLength(AnyValidLengthWillDo);

            Assert.AreEqual(AnyValidLengthWillDo, GetIndicator(sut));

            sut.SetNull();

            Assert.AreEqual(Constants.SqlNullData, GetIndicator(sut));
        }