mirror of https://github.com/dahall/Vanara.git
Fix null handling bug in WriteValues
parent
2354a0f2e3
commit
8dee73c55c
|
@ -40,7 +40,7 @@ namespace Vanara.PInvoke.Tests
|
|||
public static void WriteValues(this object value)
|
||||
{
|
||||
var json = JsonConvert.SerializeObject(value, Formatting.Indented, new Newtonsoft.Json.Converters.StringEnumConverter(), new SizeTConverter());
|
||||
TestContext.WriteLine(value.GetType().Name);
|
||||
if (value != null) TestContext.WriteLine(value.GetType().Name);
|
||||
TestContext.WriteLine(json);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue