Fix null handling bug in WriteValues

pull/83/head
David Hall 2019-08-02 13:42:25 -06:00
parent 2354a0f2e3
commit 8dee73c55c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}