Example #1
0
        public async Task Not_find_invented_word()
        {
            var wordSearcher = new DraeWordSearcher();

            var result = await wordSearcher.Search("enchiridion");

            result.Should().BeNull();
        }
Example #2
0
        public async Task Find_existing_word()
        {
            var wordSearcher = new DraeWordSearcher();

            var result = await wordSearcher.Search("ejemplo");

            result.Should().Be(new DictionaryWord("ejemplo", "https://dle.rae.es/ejemplo"));
        }