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