public void Deserialize_NonExisting_IsExpected()
        {
            var filePath = "NonExistingFile";
            var sut      = new JsonNetFileSerializer(filePath);
            var result   = sut.Deserialize <SerializationExample>();

            result.Should().BeNull();
        }
        public void Deserialize_SerializationExample_IsExpected()
        {
            var filePath = "SerializationExample.input.json";
            var sut      = new JsonNetFileSerializer(filePath);
            var expected = new SerializationExample();
            var result   = sut.Deserialize <SerializationExample>();

            result.Should().BeEquivalentTo(expected);
        }
        public void Serialize_SerializationExample_CreatesExpectedFile()
        {
            var filePath = "SerializationExample.output.json";

            File.Delete(filePath);
            File.Exists(filePath).Should().BeFalse();
            var sut = new JsonNetFileSerializer(filePath);

            sut.Serialize(new SerializationExample());
            File.Exists(filePath).Should().BeTrue();
        }