-
Notifications
You must be signed in to change notification settings - Fork 244
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
Косторной Дмитрий #223
base: master
Are you sure you want to change the base?
Косторной Дмитрий #223
Conversation
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.
Ревью
@@ -8,17 +8,18 @@ public class ObjectPrinterAcceptanceTests | |||
[Test] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
[Test] | ||
public Task ObjectPrinter_ShouldHandle_WhenExcludeType() | ||
{ | ||
var person = new SimplePerson { Name = "Dima", Age = 20 }; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
if (obj is IEnumerable enumerable) | ||
{ | ||
var text = new StringBuilder(); | ||
var pad = new string('\t', nestingLevel + 1); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
{ | ||
if (count++ >= MaxCollectionItems) | ||
{ | ||
text.Append(pad + "... (truncated)"); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
||
public ObjectPrinterSettings<TOwner> SetCustomSerialization<T>(Expression<Func<TOwner, T>> propertyExpression, Func<T, string> serializer) | ||
{ | ||
var propertyName = GetPropertyInfo(propertyExpression); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@@ -0,0 +1,12 @@ | |||
List`1: |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
} | ||
|
||
private static string AppendNewLine(string? text) => | ||
text != null && text.EndsWith(Environment.NewLine) ? text : text + Environment.NewLine; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
No description provided.