public void FromJson_CorrectJsonClass() { //arrange var json = "{\"Aaa\":\"one\",\"Abb\":\"two\",\"Aab\":\"three\"}"; var jsonClass = new CollisionJsonClass(); //act _convert.FromJson(jsonClass, json); //assert Assert.That(jsonClass.Aaa, Is.EqualTo("one")); Assert.That(jsonClass.Abb, Is.EqualTo("two")); Assert.That(jsonClass.Aab, Is.EqualTo("three")); }
protected override ReadOnlySpan <char> FromJson(CollisionJsonClass value, string json) { return(Encoding.UTF8.GetString(_convert.FromJson(value, Encoding.UTF8.GetBytes(json)))); }
protected abstract ReadOnlySpan <char> FromJson(CollisionJsonClass value, string json);
protected override ReadOnlySpan <char> FromJson(CollisionJsonClass value, string json) { return(_convert.FromJson(value, json)); }