public void IsValidItem_ReturnsTrue_IfObjectIsJObjectWithId()
 {
     Assert.IsTrue(JTokenExtensions.IsValidItem(new JObject()
     {
         { "id", "abc" }
     }));
 }
 public void IsValidItem_ReturnsFalse_IfObjectIsNotJObject()
 {
     Assert.IsFalse(JTokenExtensions.IsValidItem(new JValue(true)));
     Assert.IsFalse(JTokenExtensions.IsValidItem(new JArray()));
 }
 public void IsValidItem_ReturnsFalse_IfObjectIsJObjectWithoutId()
 {
     Assert.IsFalse(JTokenExtensions.IsValidItem(new JObject()));
 }
 public void IsValidItem_ReturnsFalse_IfObjectIsNull()
 {
     Assert.IsFalse(JTokenExtensions.IsValidItem(null));
 }