public void GetJsonKeyForPropertyTest() { // Arrange var pluralizationService = new PluralizationService(); var mm = new ModelManager(pluralizationService); // Act var idKey = mm.CalculateJsonKeyForProperty(typeof(Author).GetProperty("Id")); var nameKey = mm.CalculateJsonKeyForProperty(typeof(Author).GetProperty("Name")); var postsKey = mm.CalculateJsonKeyForProperty(typeof(Author).GetProperty("Posts")); // Assert Assert.AreEqual("id", idKey); Assert.AreEqual("name", nameKey); Assert.AreEqual("posts", postsKey); }