コード例 #1
0
        public void FDValueALCatchesTooLongValues()
        {
            var model = new SupplementaryDataLooseModel
            {
                Value = "1234567.123"
            };
            var rule = new FDValueAL();

            Assert.False(rule.Execute(model));
        }
コード例 #2
0
        public void FDValueALPassesValidValues()
        {
            var model = new SupplementaryDataLooseModel
            {
                Value = "123456.12"
            };
            var rule = new FDValueAL();

            Assert.True(rule.Execute(model));
        }