public void SelectionTestComplex1() { TestContext.WriteLine("SelectionTestComplex"); var cs = new ConfigurationSelection(); cs.AddFilter(TypeSelection.Include, "7", 0); cs.AddFilter(TypeSelection.Exclude, "r", 0); cs.CalculateStartFileValidation(); // var result = Validate(cs, StringListForPattern); Assert.IsTrue(result.Count == 2, "7 included / r excluded"); }
public void SelectionTestIncludeOccurenceLess() { TestContext.WriteLine("SelectionTestIncludeOccurenceLess"); var cs = new ConfigurationSelection(); cs.AddFilter(TypeSelection.IncludeOccurenceLess, ".", 4); cs.CalculateStartFileValidation(); // var result = Validate(cs, StringListForOccurence); Assert.IsTrue(result.Count == 2, "2 left"); }
public void SelectionTestExcludeEnd() { TestContext.WriteLine("SelectionTestExcludeEnd"); var cs = new ConfigurationSelection(); cs.AddFilter(TypeSelection.ExcludeEnd, "9", 0); cs.CalculateStartFileValidation(); // var result = Validate(cs, StringListForPattern); Assert.IsTrue(result.Count == StringListForPattern.Count - 1, "9 excluded"); }
public void SelectionTestAfterReset() { TestContext.WriteLine("SelectionTestAfterReset"); var cs = new ConfigurationSelection(); cs.RemoveFilter(cs.AddFilter(TypeSelection.Exclude, "g1", 0)); cs.RemoveFilter(cs.AddFilter(TypeSelection.Include, "Ag", 0)); cs.RemoveFilter(cs.AddFilter(TypeSelection.ExcludeEnd, "35", 0)); cs.RemoveFilter(cs.AddFilter(TypeSelection.IncludeEnd, "89", 0)); cs.RemoveFilter(cs.AddFilter(TypeSelection.ExcludeStart, "Ml", 0)); cs.RemoveFilter(cs.AddFilter(TypeSelection.IncludeStart, "Y", 0)); cs.CalculateStartFileValidation(); // var result = Validate(cs, StringListForPattern); Assert.IsTrue(result.Count == StringListForPattern.Count, "All initial list recovered"); }