public void InvalidObjectReturningString() { BadPropertyToPreventSerialization = this; Assert.IsTrue(Html.ToJsonOrErrorMessage(this).StartsWith(Html.SerializationErrorIntro)); }
public void InvalidObject() { BadPropertyToPreventSerialization = this; Assert.AreEqual("should-throw-error", Html.ToJson(this)); }