public void ExtractConvertedItems_ReturnsCorrectCountOfItems_WhenAddedManyItems()
        {
            var countItems = 100;

            for (var index = 0; index < countItems; index++)
            {
                translator.AddItem(2, GetRandomDirection());
            }

            translator.ExtractConvertedItems().Should()
            .HaveCount(countItems);
        }
Esempio n. 2
0
 public string GetTranslatedText()
 {
     RaiseIfAddingIsNotFinished();
     return(converter.ConvertText(textParts, translator.ExtractConvertedItems()));
 }