Пример #1
0
        public void TryParse_NoMatch_Empty()
        {
            SimpleExpressionSection value;
            bool result = SimpleExpressionSection.TryParse(null, ExpressionSectionType.Hour, out value);

            Assert.False(result);
        }
Пример #2
0
        public void TryParse_NoMatch4()
        {
            SimpleExpressionSection value;
            bool result = SimpleExpressionSection.TryParse("8", ExpressionSectionType.DayOfWeek, out value);

            Assert.False(result);
        }
Пример #3
0
        public void TryParse_NoMatch5()
        {
            SimpleExpressionSection value;
            bool result = SimpleExpressionSection.TryParse("60", ExpressionSectionType.Minute, out value);

            Assert.False(result);
        }
Пример #4
0
        public void TryParse_NoMatch3()
        {
            SimpleExpressionSection value;
            bool result = SimpleExpressionSection.TryParse("13", ExpressionSectionType.Month, out value);

            Assert.False(result);
        }
Пример #5
0
        public void TryParse_Match1()
        {
            SimpleExpressionSection value;
            bool result = SimpleExpressionSection.TryParse("1", ExpressionSectionType.Hour, out value);

            Assert.True(result);
            Assert.AreEqual(1, value.Value);
        }