/// <summary>
 ///	Exposes methods and properties used for alternating over a set of colors according to	the
 /// occurrences of patterns.
 /// </summary>
 /// <param name="patternMatcher">
 ///	The PatternMatcher instance which will dictate what will need to happen in order for the
 ///	color to alternate.
 /// </param>
 /// <param name="colors">
 ///	The set of colors over which to alternate.
 /// </param>
 public PatternBasedColorAlternator(
     TextPatternCollection patternMatcher,
     params Color[] colors)
     : base(
         colors)
 {
     _patternMatcher = patternMatcher;
 }
        public void MatchFound_ReturnsFalse_WhenNonoverlappingStringIsMatchedAgainst()
        {
            TextPatternCollection patternCollection = new TextPatternCollection(new[] { dummyNicePattern });

            Assert.IsFalse(patternCollection.MatchFound(dummyNotNicePattern));
        }
        public void MatchFound_ReturnsFalse_WhenNonoverlappingStringIsMatchedAgainst()
        {
            TextPatternCollection patternCollection = new TextPatternCollection(new[] { dummyNicePattern });

            Assert.IsFalse(patternCollection.MatchFound(dummyNotNicePattern));
        }
        public void MatchFound_ReturnsTrue_WhenIdenticalStringIsMatchedAgainst()
        {
            TextPatternCollection patternCollection = new TextPatternCollection(new[] { dummyNicePattern });

            Assert.IsTrue(patternCollection.MatchFound(dummyNicePattern));
        }
        public void MatchFound_ReturnsTrue_WhenIdenticalStringIsMatchedAgainst()
        {
            TextPatternCollection patternCollection = new TextPatternCollection(new[] { dummyNicePattern });

            Assert.IsTrue(patternCollection.MatchFound(dummyNicePattern));
        }