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); }
public async Task GetWordsTest() { var words = await suject.GetWords(); Assert.IsTrue(words.Count() > 0); }