I have the following code in a Unit Test:
SomeModel test = new SomeModel();
test.TestField = "Some Content Here"; //Where TestField is a String attribute of the SomeModel class
var expected = Json(test, JsonRequestBehavior.AllowGet);
When I run
System.Diagnostics.Debug.WriteLine("Expected " + expected.Data.ToString());
I get this in the output: Expected Fake.Path.SomeModel
When I run the test through the debugger I am able to see the data:

How can I access the data through my unit test? I want to be able to verify that the data in it is correct through automated tests.
I am using Visual Studio 2012 Professional
Thanks!
ToStringis just to show the type name, which is what you are seeing. If you want the message, it's going to beexpected.Data.TestField((SomeModel)expected.Data).TestField)