Ejemplo n.º 1
0
        public void FDReferenceALPassesValidReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = new string('1', 100)
            };
            var rule = new FDReferenceAL();

            Assert.True(rule.Execute(model));
        }
Ejemplo n.º 2
0
        public void FDReferenceALCatchesTooLongReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = new string('1', 101)
            };
            var rule = new FDReferenceAL();

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