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()); }
public void TestChecking_RoundDateToMiddleOfQuarter_NoColumnSet() { var dil = new RoundDateToMiddleOfQuarter(); Assert.Throws <DilutionColumnNotSetException>(() => dil.Check(new ThrowImmediatelyCheckNotifier())); }