public void Serialize_null_returns_empty()
        {
            var s = new GenericDictionaryFieldSerializer(new DefaultFieldSerializer());
            var l = s.Serialize(null).ToList();

            Assert.Equal(0, l.Count);
        }
        public void Serialize_dict_with_null_elements()
        {
            var s    = new GenericDictionaryFieldSerializer(new DefaultFieldSerializer());
            var dict = new Dictionary <string, string> {
                { "one", "1" },
                { "two", null },
            };
            var l = s.Serialize(dict).ToList();

            Assert.Equal(2, l.Count);
        }