public void WhenTypeIsNotJsonValueThenCanReadIsFalse() { var formatter = new JsonValueMediaTypeFormatter(); Assert.IsFalse(formatter.CanReadType(typeof(int))); }
public void WhenTypeIsJsonValueThenCanReadIsTrue() { var formatter = new JsonValueMediaTypeFormatter(); Assert.IsTrue(formatter.CanReadType(typeof(JsonValue))); }