public void TryParse_NoMatch_Empty() { ListExpressionSection value; bool result = ListExpressionSection.TryParse(null, ExpressionSectionType.Hour, out value); Assert.False(result); }
public void TryParse_NoMatch6() { ListExpressionSection value; bool result = ListExpressionSection.TryParse("1,?", ExpressionSectionType.DayOfMonth, out value); Assert.False(result); }
public void TryParse_Match2() { ListExpressionSection value; bool result = ListExpressionSection.TryParse("1,2", ExpressionSectionType.Hour, out value); Assert.True(result); Assert.AreEqual(2, value.Sections.Count); }