Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/68260458/c-sharp-convert-assertfailedexception-jtoken-to-exception-object by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0)
Json.NET version: Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed

{
  "ClassName": "Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException",
  "Message": "This is a test",
  "Data": null,
  "InnerException": null,
  "HelpURL": null,
  "StackTraceString": null,
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": -2146233088,
  "Source": null,
  "WatsonBuckets": null
}
Exception deserialized successfully: 
System.Exception: This is a test
All tests passed.
Last Run: 7:57:35 pm
Compile: 0.02s
Execute: 0.17s
Memory: 17.22Mb
CPU: 0.19s