Esempio n. 1
0
        public void TryParseArrayJson_Null()
        {
            IReadOnlyCollection <UserResult> result;
            var isSuccess = JsonEntity.TryParseJsonArray(null, out result);

            Assert.IsFalse(isSuccess);
            Assert.IsNull(result);
        }
Esempio n. 2
0
        public void TryParseArrayJson_EmptyString()
        {
            IReadOnlyCollection <UserResult> result;
            var isSuccess = JsonEntity.TryParseJsonArray(string.Empty, out result);

            Assert.IsTrue(isSuccess);
            Assert.IsNull(result);
        }
Esempio n. 3
0
        public void TryParseArrayJson_InvalidJson()
        {
            IReadOnlyCollection <UserResult> result;
            var isSuccess = JsonEntity.TryParseJsonArray("this is not JSON", out result);

            Assert.IsFalse(isSuccess);
            Assert.IsNull(result);
        }