Esempio n. 1
0
        public void DecimalNumberType_FromProfilerTest()
        {
            FileStructureProfile source = this.GetProfileForDecimal();
            BaseValidator        field  = source.ValidatorFieldBuilder();

            bool flag = field is DecimalNumber;

            Assert.True(flag);
        }
        public void DateAndTimeFromBuilderFailedTest(string value, bool isNullable)
        {
            FileStructureProfile source = this.GetProfileForDateAndTime(isNullable);
            BaseValidator        field  = source.ValidatorFieldBuilder();

            field.Value = value;
            bool isValid = field.IsValid;

            Assert.False(isValid);
        }
Esempio n. 3
0
        public void DecimalNumber_FromProfiler_PassedTest(string value)
        {
            FileStructureProfile source = this.GetProfileForDecimal();
            BaseValidator        field  = source.ValidatorFieldBuilder();

            field.Value = value;

            bool flag = field.IsValid;

            Assert.True(flag);
        }