public static void Paths(IEnumerable <string> paths, params string[] fullPaths) { paths = paths.ToList(); var builder = new ConstraintBuilder(); builder.Append(Has.Count.EqualTo(fullPaths.Length)); foreach (var fullPath in fullPaths) { builder.Append(Does.Contain(fullPath)); } Assert.That(paths, builder.Resolve()); }
/// <summary> /// Returns a string representation of the expression as it /// currently stands. This should only be used for testing, /// since it has the side-effect of resolving the expression. /// </summary> /// <returns></returns> public override string ToString() { return(builder.Resolve().ToString()); }