public void ShouldErrorSerializingIllegalComplexAttributeWithMeta() { var r = new ResourceWithIllegalComplexAttributes { Id = 1, WithMeta = new ComplexAttributeWithMeta { Meta = 1 } }; var ro = new ResourceObject(r, _p); JToken json = ro.ToJson(); }
public void ShouldErrorSerializingComplexAttributeIllegalNested() { var r = new ResourceWithIllegalComplexAttributes { Id = 1, WithNested = new ComplexAttributeWithIllegalAttribute { WithId = new ComplexAttributeWithId { Id = 1 } } }; var ro = new ResourceObject(r, _p); JToken json = ro.ToJson(); }