я изменил сигнатуру методов на Task
В своих модульных тестах я использую плавные утверждения.
но не могу заставить это работать:
Код: Выделить всё
_catalogVehicleMapper
.Invoking(m => m.MapToCatalogVehiclesAsync(searchResult, filtersInfo, request, default(CancellationToken)))
.Should().Throw()
.WithMessage("One of passed arguments has null value in mapping path and can not be mapped");
кто-то..?
Подробнее здесь: https://stackoverflow.com/questions/516 ... tassertion
Мобильная версия