Beispiel #1
0
 public void ShouldErrorSerializingIllegalComplexAttributeWithMeta()
 {
     var r = new ResourceWithIllegalComplexAttributes
     {
         Id       = 1,
         WithMeta = new ComplexAttributeWithMeta {
             Meta = 1
         }
     };
     var    ro   = new ResourceObject(r, _p);
     JToken json = ro.ToJson();
 }
Beispiel #2
0
 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();
 }