public void TryParse_NoMatch_Empty() { SimpleExpressionSection value; bool result = SimpleExpressionSection.TryParse(null, ExpressionSectionType.Hour, out value); Assert.False(result); }
public void TryParse_NoMatch4() { SimpleExpressionSection value; bool result = SimpleExpressionSection.TryParse("8", ExpressionSectionType.DayOfWeek, out value); Assert.False(result); }
public void TryParse_NoMatch5() { SimpleExpressionSection value; bool result = SimpleExpressionSection.TryParse("60", ExpressionSectionType.Minute, out value); Assert.False(result); }
public void TryParse_NoMatch3() { SimpleExpressionSection value; bool result = SimpleExpressionSection.TryParse("13", ExpressionSectionType.Month, out value); Assert.False(result); }
public void TryParse_Match1() { SimpleExpressionSection value; bool result = SimpleExpressionSection.TryParse("1", ExpressionSectionType.Hour, out value); Assert.True(result); Assert.AreEqual(1, value.Value); }