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