public void TryParseArrayJson_Null() { IReadOnlyCollection <UserResult> result; var isSuccess = JsonEntity.TryParseJsonArray(null, out result); Assert.IsFalse(isSuccess); Assert.IsNull(result); }
public void TryParseArrayJson_EmptyString() { IReadOnlyCollection <UserResult> result; var isSuccess = JsonEntity.TryParseJsonArray(string.Empty, out result); Assert.IsTrue(isSuccess); Assert.IsNull(result); }
public void TryParseArrayJson_InvalidJson() { IReadOnlyCollection <UserResult> result; var isSuccess = JsonEntity.TryParseJsonArray("this is not JSON", out result); Assert.IsFalse(isSuccess); Assert.IsNull(result); }