Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Доработать передачу параметров по умолчанию при проверке метода на исключения. #288

Closed
alkoleft opened this issue Mar 14, 2024 · 0 comments · Fixed by #362

Comments

@alkoleft
Copy link
Member

Переделать формирование параметров метода, сейчас когда движок сталкивается с незаполненным параметром он прерывает обработку. Сделать анализ параметров с конца, чтобы можно было лаконичнее закидывать параметры по умолчанию.

// Вместо
ЮТест.ОжидаетЧто(МойМодуль, "Тест входных параметров")
	.Метод("МояМетод", ЮТОбщий.ЗначениеВМассиве(ЮТТестКлиентСервер.ПараметрПоУмолчанию(), Истина))
		.НеВыбрасываетИсключение();

// Получиться
ЮТест.ОжидаетЧто(МойМодуль, "Тест входных параметров")
	.Метод("МояМетод", ЮТОбщий.ЗначениеВМассиве(, Истина))
		.НеВыбрасываетИсключение();

Доработка #207

@alkoleft alkoleft added this to the YAxUnit 24.05 milestone May 7, 2024
alkoleft added a commit that referenced this issue May 27, 2024
При вызове метода и при настройке мокито
alkoleft added a commit that referenced this issue May 27, 2024
alkoleft added a commit that referenced this issue May 27, 2024
alkoleft added a commit that referenced this issue May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant