public void Test1() { Assert.IsFalse(_functions.ExactlyCount("abcdef", 2)); Assert.IsFalse(_functions.ExactlyCount("abcdef", 3)); Assert.IsTrue(_functions.ExactlyCount("bababc", 2)); Assert.IsTrue(_functions.ExactlyCount("bababc", 3)); Assert.IsTrue(_functions.ExactlyCount("abbcde", 2)); Assert.IsFalse(_functions.ExactlyCount("abbcde", 3)); Assert.IsFalse(_functions.ExactlyCount("abcccd", 2)); Assert.IsTrue(_functions.ExactlyCount("abcccd", 3)); Assert.IsTrue(_functions.ExactlyCount("aabcdd", 2)); Assert.IsFalse(_functions.ExactlyCount("aabcdd", 3)); Assert.IsTrue(_functions.ExactlyCount("abcdee", 2)); Assert.IsFalse(_functions.ExactlyCount("abcdee", 3)); Assert.IsFalse(_functions.ExactlyCount("ababab", 2)); Assert.IsTrue(_functions.ExactlyCount("ababab", 3)); }