public void TestLoadInvalidJsonReader()
        {
            JsonReader reader = new JsonReader(new StringReader(_notJson));
            LottieResult <LottieComposition> result = LottieCompositionFactory.FromJsonReaderSync(reader, "json");

            Assert.NotNull(result.Exception);
            Assert.Null(result.Value);
        }
Ejemplo n.º 2
0
 public static LottieComposition FromJsonSync(JsonReader reader)
 {
     return(LottieCompositionFactory.FromJsonReaderSync(reader, null).Value);
 }