Пример #1
0
        public void Test_GetSentenceByKeys()
        {
            var dict      = new[] { "a", "tea", "ate", "eat" };
            var generator = new AnagramGenerator(dict, 1);
            var phrase    = "aaet";

            generator.Initialize(phrase);

            var actual = generator.GetSentenceByKeys(new[] { "a", "aet" }).ToList();

            Assert.AreEqual(3, actual.Count);
            CollectionAssert.AreEquivalent(new[] { "a eat", "a tea", "a ate" }, actual);
        }