public void DumpObjectWithValueType2Text() { var valueTest = new ObjectWithValueTypeTest(); var dumper = new Dumper(); var dumpText = dumper.Dump(valueTest).ToText(); Trace.WriteLine(dumpText); var expected = "DumpObjectTests.Dump2TextExtension.ObjectWithValueTypeTest" + Environment.NewLine + " - PublicProperty : publicProp" + Environment.NewLine + " - PublicProperty2 : <null>"; Assert.AreEqual(expected, dumpText); }
public void DumpObjectWithValueTypeFirstLevel2Text() { var valueTest = new ObjectWithValueTypeTest(); var dumper = new Dumper{MaxDumpLevel = 1}; var dumpText = dumper.Dump(valueTest).ToText(); Trace.WriteLine(dumpText); var expected = "DumpObjectTests.Dump2TextExtension.ObjectWithValueTypeTest" + Environment.NewLine + " - PublicProperty : ..." + Environment.NewLine + " - PublicProperty2 : ..."; Assert.AreEqual(expected, dumpText); }
public ObjectWithObjectTest() { PublicProperty = "publicProp"; Instance = new ObjectWithValueTypeTest(); }