示例#1
0
        public async Task <IEnumerable <string> > SearchAsync(int size, string word)
        {
            var words = await wordListReader.GetWords();

            var match = words
                        .Where(x => x.Length == size)
                        .Where(x => x.Select(c => word.Contains(c)).All(b => b == true))
                        .OrderBy(x => x);

            return(match);
        }
示例#2
0
        public async Task GetWordsTest()
        {
            var words = await suject.GetWords();

            Assert.IsTrue(words.Count() > 0);
        }