public void Invoke_array_deserializer()
        {
            //Arrange
            var converter = new CustomArrayJsonConverter();

            //Act
            bool   shouldTrue = converter.CanConvert(ArrayScopes.GetType());
            string response   = JsonConvert.SerializeObject(ArrayScopes, Formatting.Indented, converter);

            //Assert
            Assert.Throws <NotImplementedException>(() => JsonConvert.DeserializeObject <string[]>(response, converter));
        }
        public void Validate_types_available_array_converter()
        {
            //Arrange
            var converter = new CustomArrayJsonConverter();

            //Act
            bool shouldFalse = converter.CanConvert(ArrayScopes[0].GetType());
            bool shouldTrue  = converter.CanConvert(ArrayScopes.GetType());

            //Assert
            Assert.True(shouldTrue);
            Assert.False(shouldFalse);
        }
        public void Invoke_array_serializer()
        {
            //Arrange
            var converter = new CustomArrayJsonConverter();

            //Act
            bool   shouldTrue = converter.CanConvert(ArrayScopes.GetType());
            string response   = JsonConvert.SerializeObject(ArrayScopes, Formatting.Indented, converter);

            //Assert
            Assert.True(shouldTrue);
            Assert.NotEmpty(response);
            Assert.All(ArrayScopes, item => response.Contains(item));
        }