public void WriteJson_NullSerializer_ThrowsException()
        {
            // Arrange
            var infoIdentifierJsonConverter = new InfoIdentifierJsonConverter();

            // Act + Assert
            Assert.That(() => infoIdentifierJsonConverter.WriteJson(new JsonTextWriter(new StreamWriter(new MemoryStream())), 0, null), Throws.InstanceOf<ArgumentNullException>());
        }
        public void ReadJson_NullReader_ThrowsException()
        {
            // Arrange
            var infoIdentifierJsonConverter = new InfoIdentifierJsonConverter();

            // Act + Assert
            Assert.That(() => infoIdentifierJsonConverter.ReadJson(null, typeof (object), 0, new JsonSerializer()), Throws.InstanceOf<ArgumentNullException>());
        }
        public void WriteJson_NullWriter_ThrowsException()
        {
            // Arrange
            var infoIdentifierJsonConverter = new InfoIdentifierJsonConverter();

            // Act + Assert
            Assert.That(() => infoIdentifierJsonConverter.WriteJson(null, 0, new JsonSerializer()), Throws.InstanceOf<ArgumentNullException>());
        }
        public void CanConvert_ReturnsTrue()
        {
            // Arrange
            var infoIdentifierJsonConverter = new InfoIdentifierJsonConverter();

            // Act
            var result = infoIdentifierJsonConverter.CanConvert(null);

            // Assert
            Assert.That(result, Is.EqualTo(true));
        }