示例#1
0
        public void CanSetPrecision()
        {
            var hbm    = new HbmColumn();
            var mapper = new ColumnMapper(hbm, "aColumn");

            mapper.Precision(12);

            hbm.precision.Should().Be("12");

            mapper.Executing(m => m.Precision(0)).Throws <ArgumentOutOfRangeException>();
            mapper.Executing(m => m.Precision(-1)).Throws <ArgumentOutOfRangeException>();
        }