public void SubstitutionSet_CountTest(int amount, string[] substitutions) { var s = new SubstitutionSet(substitutions.Select(str => new Substitution(str))); Assert.AreEqual(s.Count(), amount); }