-
Notifications
You must be signed in to change notification settings - Fork 245
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
Большаков Николай #235
base: master
Are you sure you want to change the base?
Большаков Николай #235
Conversation
[SetCulture("")] | ||
public class PrintingConfigTests | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не хватает тестов где свойство в поле какой-то класс
ObjectPrinting/ObjectPrinter.cs
Outdated
if (path != null && path.Contains(propertyValue.Value)) | ||
{ | ||
throw new InvalidOperationException("Unable to print object with cyclic reference."); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Корректная обработка циклических ссылок между объектами. Для меня корректная обработка не должна приводить к ошибкам
|
||
public class ObjectPrinter | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
на мой взгляд класс достаточно тяжело читается, классическая рекурсия тут бы выйграла для чтения
@Pasha0666