public void RenamedMembers() { var m = new ModelRenamedMembers() { Field1 = "f1", Field2 = "f2", Prop1 = "p1", Prop2 = "p2", }; var json = Json.Format(m); Assert.Contains(json, "Field1"); Assert.DoesNotContain(json, "field2"); Assert.Contains(json, "Prop1"); Assert.DoesNotContain(json, "prop2"); }