Пример #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));
 }