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); }
public static LottieComposition FromJsonSync(JsonReader reader) { return(LottieCompositionFactory.FromJsonReaderSync(reader, null).Value); }