public void TryParse_NoMatch_Empty() { IgnoreExpressionSection value; bool result = IgnoreExpressionSection.TryParse(null, ExpressionSectionType.Hour, out value); Assert.False(result); }
public void TryParse_Match5() { IgnoreExpressionSection value; bool result = IgnoreExpressionSection.TryParse("?", ExpressionSectionType.Month, out value); Assert.True(result); Assert.AreEqual(ExpressionSectionType.Month, value.Type); }
public void TryParse_Fails() { IgnoreExpressionSection value; Assert.Throws <InvalidOperationException>(() => IgnoreExpressionSection.TryParse("?", (ExpressionSectionType)99, out value)); }