public static SearchStringParseResult AssertPhases(this SearchStringParseResult result, PhaseInfo[] expected, params PhaseInfo[] expectedAdd)
        {
            var expectedColelction = expectedAdd == null ? expected : Enumerable.Concat(expected, expectedAdd).ToArray();

            CollectionAssert.AreEquivalent(expectedColelction, result.PhaseInfos, BuildDiffMessage(expectedColelction, result.PhaseInfos));
            return(result);
        }
 public static SearchStringParseResult AssertFieldExclude(this SearchStringParseResult result, string field, params string[] searchTexts)
 {
     AssertSingle(result.Exclude, field, searchTexts);
     return(result);
 }
 public static SearchStringParseResult AssertPhases(this SearchStringParseResult result, PhaseInfo[] expected1, PhaseInfo expected2, params PhaseInfo[] expectedAdd)
 {
     return(AssertPhases(result, Enumerable.Concat(expected1, new[] { expected2 }).ToArray(), expectedAdd));
 }
 public static SearchStringParseResult AssertExclude(this SearchStringParseResult result, params string[] searchTexts)
 {
     AssertSingle(result.Exclude, null, searchTexts);
     return(result);
 }
 public static SearchStringParseResult AssertRegular(this SearchStringParseResult result, params string[] searchTexts)
 {
     AssertSingle(result.Regular, null, searchTexts);
     return(result);
 }
 public static SearchStringParseResult AssertPhases(this SearchStringParseResult result, params string[] expected)
 {
     return(AssertPhases(result, expected == null ? null : expected.Select(phase => new PhaseInfo(phase)).ToArray()));
 }
 public static SearchStringParseResult AssertPhases(this SearchStringParseResult result)
 {
     return(AssertPhases(result, new PhaseInfo[0]));
 }
 public static SearchStringParseResult AssertPhases(this SearchStringParseResult result, PhaseInfo expected1, PhaseInfo expected2, params PhaseInfo[] expectedAdd)
 {
     return(AssertPhases(result, new[] { expected1, expected2 }, expectedAdd));
 }