示例#1
0
        public void TestChecking_RoundDateToMiddleOfQuarter_CompatibleDataType(string incompatibleType)
        {
            var col = Mock.Of <IPreLoadDiscardedColumn>(p => p.SqlDataType == incompatibleType);

            var dil = new RoundDateToMiddleOfQuarter();

            dil.ColumnToDilute = col;

            dil.Check(new ThrowImmediatelyCheckNotifier());
        }
示例#2
0
        public void TestChecking_RoundDateToMiddleOfQuarter_NoColumnSet()
        {
            var dil = new RoundDateToMiddleOfQuarter();

            Assert.Throws <DilutionColumnNotSetException>(() => dil.Check(new ThrowImmediatelyCheckNotifier()));
        }