public void FromJson_ValidComplexJson_ReturnsObject()
        {
            var    item = Helper.GetComplexFake();
            string json = JSerializer.ToJson(item);

            var fromJsonObj = JSerializer.FromJson <ComplexFake>(json);

            Assert.True(fromJsonObj != null);
        }
        public void FromJson_Null_Throws()
        {
            string json = null;

            Assert.Throws <ArgumentException>(() => JSerializer.FromJson <SimpleFake>(json));
        }
        public void FromJson_InValidJson_Throws()
        {
            string json = "this is not json";

            Assert.Throws <JsonReaderException>(() => JSerializer.FromJson <SimpleFake>(json));
        }