public void IdColumnsDoNotGetSerialisedWhenIgnored() { jsonSerialiser.IgnoreProperty(typeof(JsonSerialiserTests), "Id"); var entity = new JsonSerialiserTests { SimpleProperty = "123", Id = 1 }; var text = jsonSerialiser.SerializeObject(entity); Assert.AreEqual("{\"simpleProperty\":\"123\"}", text); }