public void AllAreUsed_CompleteMatchWithMore() { Assert.IsTrue(ParseBucket <Offset> .IsFieldUsed(PatternFields.Hours24 | PatternFields.Minutes | PatternFields.Hours12, PatternFields.Hours24 | PatternFields.Minutes)); }
public void IsUsed_SingleValueMatch() { Assert.IsTrue(ParseBucket <Offset> .IsFieldUsed(PatternFields.Hours24, PatternFields.Hours24)); }
public void IsFieldUsed_MultiValueMatch() { Assert.IsTrue(ParseBucket <Offset> .IsFieldUsed(PatternFields.Hours24 | PatternFields.Minutes, PatternFields.Hours24)); }
public void IsUsed_NoMatch() { Assert.IsFalse(ParseBucket <Offset> .IsFieldUsed(PatternFields.Hours12 | PatternFields.Minutes, PatternFields.Hours24)); }