public void FromJson_CorrectJsonClass()
        {
            //arrange
            var jsonClass = new JsonNullableBooleanClass();

            //act
            _convert.FromJson(jsonClass, _json);

            //assert
            Assert.That(jsonClass.IsTrue, Is.True);
            Assert.That(jsonClass.IsFalse, Is.False);
            Assert.That(jsonClass.IsNull, Is.Null);
        }
        public void ToJson_CorrectString()
        {
            //arrange
            var jsonClass = new JsonNullableBooleanClass()
            {
                IsTrue  = true,
                IsFalse = false,
                IsNull  = null
            };

            //act
            var json = _convert.ToJson(jsonClass);

            //assert
            Assert.That(json.ToString(), Is.EqualTo(_json));
        }
 protected abstract ReadOnlySpan <char> FromJson(JsonNullableBooleanClass value, string json);
 protected abstract string ToJson(JsonNullableBooleanClass jsonClass);
 protected override ReadOnlySpan <char> FromJson(JsonNullableBooleanClass value, string json)
 {
     return(Encoding.UTF8.GetString(_convert.FromJson(value, Encoding.UTF8.GetBytes(json))));
 }
        protected override string ToJson(JsonNullableBooleanClass jsonClass)
        {
            var jsonUtf8 = _convert.ToJsonUtf8(jsonClass);

            return(Encoding.UTF8.GetString(jsonUtf8));
        }
 protected override ReadOnlySpan <char> FromJson(JsonNullableBooleanClass value, string json)
 {
     return(_convert.FromJson(value, json));
 }
 protected override string ToJson(JsonNullableBooleanClass jsonClass)
 {
     return(_convert.ToJson(jsonClass).ToString());
 }